Da meine Bildersammlung etwas ausgeartet ist (>250000) und digikam mit sqlite bei Vergleichsoperationen reproduzierbar einfriert, wollte ich auf Mariadb migrieren. Installiert sind mariadb selbst, mdb-clients, mdb-libs und perl-dbd-mariadb. Beim Setup bekomme ich an der Stelle
[root@black ~]# mysql_secure_installation
/usr/bin/mysql_secure_installation: Deprecated program name. It will be removed in a future release, use 'mariadb-secure-installation' instead
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (111)
Ich habe es testhalber unter Ubuntu probiert, da funktioniert es problemlos. Da ich relativ neu in EOS bin und unter Arch basierten Systemen manches etwas anders ist, die Frage: Hat jemand Erfahrung damit oder weiß, wo ich eine vernünftige Anleitung finde, ich habe mir schon die Finger wund gegoogelt, finde aber nichts wirklich erhellendes. Neuinstallation hat auch nicht geholfen - hätte ja sein können
[root@black ~]# systemctl restart mariadb
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xeu mariadb.service" for details.
gibt es Huddel. Unter Ubuntu bekommt man an der genannten Stelle beim Eingeben des Root Passworts ein leeres ein, kommt der Dialog zum Eingeben des neuen, hier die genannte Fehlermeldung.
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (111)
Ist das so verständlich, oder schwafel ich zuviel?
der Server läuft jetzt, nachdem ich ein paar Vorschläge zur Problemlösunng angewandt habe.
Bzw. was gibt sudo systemctl status mariadb aus ?
peterb@black:~$ systemctl status mariadb
● mariadb.service - MariaDB 11.7.2 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled)
Active: active (running) since Fri 2025-04-25 17:40:27 CEST; 12min ago
Invocation: 2105d902ddb446e2804f74c4a3ca11b6
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 2518 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera>
Process: 2556 ExecStartPost=/bin/rm -f /run/mysqld/wsrep-start-position (code=exited, status=0/SUCCESS)
Main PID: 2544 (mariadbd)
Status: "Taking your SQL requests now..."
Tasks: 9 (limit: 506661)
Memory: 358.2M (peak: 362.9M)
CPU: 556ms
CGroup: /system.slice/mariadb.service
└─2544 /usr/bin/mariadbd
Apr 25 17:40:27 black mariadbd[2544]: 2025-04-25 17:40:27 0 [Note] Server socket created on IP: '0.0.0.0'.
Apr 25 17:40:27 black mariadbd[2544]: 2025-04-25 17:40:27 0 [Note] Server socket created on IP: '::'.
Apr 25 17:40:27 black mariadbd[2544]: 2025-04-25 17:40:27 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
Apr 25 17:40:27 black mariadbd[2544]: 2025-04-25 17:40:27 0 [Note] /usr/bin/mariadbd: ready for connections.
Apr 25 17:40:27 black mariadbd[2544]: Version: '11.7.2-MariaDB' socket: '/run/mysqld/mysqld.sock' port: 330>
Apr 25 17:40:27 black systemd[1]: Started MariaDB 11.7.2 database server.
Apr 25 17:43:14 black mariadbd[2544]: 2025-04-25 17:43:14 3 [Warning] Aborted connection 3 to db: 'unconnecte>
Apr 25 17:43:55 black mariadbd[2544]: 2025-04-25 17:43:55 4 [Warning] Access denied for user 'root'@'localhos>
Apr 25 17:44:17 black mariadbd[2544]: 2025-04-25 17:44:17 5 [Warning] Access denied for user 'root'@'localhos>
Apr 25 17:45:49 black mariadbd[2544]: 2025-04-25 17:45:49 6 [Warning] Access denied for user 'root'@'localhos>
lines 1-26/26 (END)
Ich komme jetzt genau bis hier:
peterb@black:~$ mysql_secure_installation
/usr/bin/mysql_secure_installation: Deprecated program name. It will be removed in a future release, use 'mariadb-secure-installation' instead
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.
Enter current password for root (enter for none):
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Enter current password for root (enter for none):
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Enter current password for root (enter for none):
Aborting!
Cleaning up...
peterb@black:~$ mariadb-secure-installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
**emphasized text*In order to log into MariaDB to secure it, we'll need the current*
*password for the root user. If you've just installed MariaDB, and*
*haven't set the root password yet, you should just press enter here.*
Enter current password for root (enter for none):
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Enter current password for root (enter for none):
Genau hier klemmt es, hier sollte kommen “enter the new root password”
mysql_secure_installation
/usr/bin/mysql_secure_installation: Deprecated program name.
Heist das für mich das du das Programm anders starten sollst, weil dieser Aufruf veraltet ist.
Das steht am Ende von der Zeile: use 'mariadb-secure-installation' instead
Also starte das mal mit mariadb-secure-installation K.A. ob das hilft.
Versuch macht kluch …
Habe ich doch, schau mal hinter
“cleaning up…”
Liefert genau das gleiche, also läuft auch das alte script noch. Das Problem scheint zu sin, dass irgendwie das Rootpasswort vergurkt ist, Kann das sein, dass da noch Reste eines vorherigen Installationsversuch rumliegen, die bei der Deinstallation ( weil der Server gar nicht erst starten wollte) übrig geblieben sind?
War ja nur ein Versuch, ich konnte mal ein anderes Problem damit lösen, da gabs ne ähnliche Meldung.
Das hinter cleaning up habe ich wohl überlesen.
Ich habe hier noch was gefunden, anscheinend braucht man für MariaDB kein Root Passwort erstellen.
K.A. ob du diese Seite schon kennst da steht das mit dem PW, ich verlinke sie mal:
Unter Ubuntu, funktioniert das mit dem Passwort, aber möglicherweise wird dort eine ältere Version angeboten.
PS
Wenn du einen Webseiten Übersetzer brauchst -ist ja hier das Deutsche Unterforum-. rate ich zu Immersion Translation. IMHO das beste Übersetzungs Tool. Kostenlos.