Hallo,
ich habe exakt nach der Wiki-Anleitung den Wechsel von mySQL auch Maria-DB versucht; schließlich gab es einen TimeOut-Fehler beim Installieren / Starten und ...
$ mysql -u root ERROR 1698 (28000): Access denied for user 'root'@'localhost' $ sudo mysql -u root Passwort Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 44 Server version: 10.1.38-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]>
Meine Datenbanken sind nicht in /var/lib/mysql sondern auf einer anderen Partition gespeichert; dazu war die /etc/mysql/mysql.conf.d/ entsprechend angepasst. Die ist jetzt weg, dafür gibt es einen Link auf /etc/alternatives/my.cnf, diese Datei verlinkt nach /etc/mysql/mariadb.cnf; in dieser steht nur
[client-server] # Import all .cnf files from configuration directory !includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mariadb.conf.d/
In der meinem Backup von steht:
[mysqld] # * Basic Settings user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr #datadir = /var/lib/mysql # Original-Einstellung datadir = /mnt/Verzeichnis/Datenbanken/mySQL/mysql/ tmpdir = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking #
Wie krieg' ich das wieder sauber aufgeräumt und gestartet?
Danke, Michael