Wie passt das zusammen?
Aber installiert ist das common paket, ja scheinbar.
Reinstall das mal bitte.
Wie passt das zusammen?
Das ist nicht richtig - phpmyadmin gab es in Buster nicht als Paket in Bullseye schon.oln hat geschrieben:10.09.2021 07:40:54Moin,
PHPMyAdmin gibt es in Bullseye nicht als Paket. Das ist dann der Adminer.
Da scheint es ein Problem zu geben:whisper hat geschrieben:09.09.2021 21:17:16Aber installiert ist das common paket, ja scheinbar.
Reinstall das mal bitte.
Code: Alles auswählen
root@sol:/# apt purge mariadb-common
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
mariadb-client-10.5 : Hängt ab von: mariadb-client-core-10.5 (>= 1:10.5.11-1) soll aber nicht installiert werden
Empfiehlt: libdbd-mariadb-perl soll aber nicht installiert werden oder
libdbd-mysql-perl soll aber nicht installiert werden
E: Fehler: Unterbrechungen durch pkgProblemResolver::Resolve hervorgerufen; dies könnte durch zurückgehaltene Pakete verursacht worden sein.
root@sol:/#
Code: Alles auswählen
root@sol:/# apt-get install mariadb-common
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden NEUEN Pakete werden installiert:
mariadb-common
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 36,3 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 82,9 kB Plattenplatz zusätzlich benutzt.
Holen:1 http://deb.debian.org/debian bullseye/main amd64 mariadb-common all 1:10.5.11-1 [36,3 kB]
Es wurden 36,3 kB in 0 s geholt (288 kB/s).
Vormals nicht ausgewähltes Paket mariadb-common wird gewählt.
(Lese Datenbank ... 280132 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../mariadb-common_1%3a10.5.11-1_all.deb ...
Entpacken von mariadb-common (1:10.5.11-1) ...
mariadb-common (1:10.5.11-1) wird eingerichtet ...
update-alternatives: /etc/mysql/mariadb.cnf wird verwendet, um /etc/mysql/my.cnf (my.cnf) im automatischen Modus bereitzustellen
Trigger für mariadb-server-10.5 (1:10.5.11-1) werden verarbeitet ...
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
root@sol:/#
das nochmal machen, beide Ausgaben zeigen.See "systemctl status mariadb.service" and "journalctl -xe" for details.
Code: Alles auswählen
mysqld --verbose --help
Code: Alles auswählen
● mariadb.service - MariaDB 10.5.11 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2021-09-10 10:12:56 CEST; 6h ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 6475 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 6476 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 6478 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR ||>
Process: 6489 ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Main PID: 6489 (code=exited, status=1/FAILURE)
Status: "MariaDB server is down"
CPU: 70ms
Sep 10 10:12:56 sol systemd[1]: Starting MariaDB 10.5.11 database server...
Sep 10 10:12:56 sol mariadbd[6489]: 2021-09-10 10:12:56 0 [Note] /usr/sbin/mariadbd (mysqld 10.5.11-MariaDB-1) starting as process 6489 ...
Sep 10 10:12:56 sol mariadbd[6489]: 2021-09-10 10:12:56 0 [Warning] Can't create test file /var/lib/mysql/sol.lower-test
Sep 10 10:12:56 sol mariadbd[6489]: [99B blob data]
Sep 10 10:12:56 sol mariadbd[6489]: 2021-09-10 10:12:56 0 [ERROR] Aborting
Sep 10 10:12:56 sol systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Sep 10 10:12:56 sol systemd[1]: mariadb.service: Failed with result 'exit-code'.
Sep 10 10:12:56 sol systemd[1]: Failed to start MariaDB 10.5.11 database server.
Code: Alles auswählen
root@sol:/# /etc/init.d/mysql start
Starting mysql (via systemctl): mysql.serviceJob for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
failed!
root@sol:/# journalctl -xe
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit phpsessionclean.service has begun execution.
░░
░░ The job identifier is 13757.
Sep 10 17:09:00 sol systemd[1]: Starting MariaDB 10.5.11 database server...
░░ Subject: A start job for unit mariadb.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit mariadb.service has begun execution.
░░
░░ The job identifier is 13864.
Sep 10 17:09:01 sol systemd[1]: phpsessionclean.service: Succeeded.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit phpsessionclean.service has successfully entered the 'dead' state.
Sep 10 17:09:01 sol systemd[1]: Finished Clean php session files.
░░ Subject: A start job for unit phpsessionclean.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit phpsessionclean.service has finished successfully.
░░
░░ The job identifier is 13757.
Sep 10 17:09:01 sol mariadbd[10996]: 2021-09-10 17:09:01 0 [Note] /usr/sbin/mariadbd (mysqld 10.5.11-MariaDB-1) starting as process 10996 ...
Sep 10 17:09:01 sol mariadbd[10996]: 2021-09-10 17:09:01 0 [Warning] Can't create test file /var/lib/mysql/sol.lower-test
Sep 10 17:09:01 sol mariadbd[10996]: [99B blob data]
Sep 10 17:09:01 sol mariadbd[10996]: 2021-09-10 17:09:01 0 [ERROR] Aborting
Sep 10 17:09:01 sol systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit mariadb.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 10 17:09:01 sol systemd[1]: mariadb.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit mariadb.service has entered the 'failed' state with result 'exit-code'.
Sep 10 17:09:01 sol systemd[1]: Failed to start MariaDB 10.5.11 database server.
░░ Subject: A start job for unit mariadb.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit mariadb.service has finished with a failure.
░░
░░ The job identifier is 13864 and the job result is failed.
Code: Alles auswählen
root@sol:/# mysqld --verbose --help
bash: mysqld: Kommando nicht gefunden.
Code: Alles auswählen
Sep 10 17:09:01 sol mariadbd[10996]: 2021-09-10 17:09:01 0 [Warning] Can't create test file /var/lib/mysql/sol.lower-test
Code: Alles auswählen
root@sol:/var/lib# /etc/init.d/mysql start
Starting mysql (via systemctl): mysql.serviceJob for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
failed!
root@sol:/var/lib# journalctl -xe
░░ A start job for unit mariadb.service has begun execution.
░░
░░ The job identifier is 14067.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] /usr/sbin/mariadbd (mysqld 10.5.11-MariaDB-1) starting as process 11264 ...
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Uses event mutexes
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Number of pools: 1
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Using Linux native AIO
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Completed initialization of buffer pool
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Setting file './ibdata1' size to 12 MB. Physically writing the file full; Please wait ...
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: File './ibdata1' size is now 12 MB.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Setting log file ./ib_logfile101 size to 100663296 bytes
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: New log file created, LSN=10317
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Doublewrite buffer not found: creating new
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Doublewrite buffer created
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: 128 rollback segments are active.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Creating foreign key constraint system tables.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Creating tablespace and datafile system tables.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Creating sys_virtual system tables.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Creating shared tablespace for temporary tables
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] InnoDB: 10.5.11 started; log sequence number 0; transaction id 7
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] Plugin 'FEEDBACK' is disabled.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [ERROR] Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist". Some plugins may be not loaded
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [Note] Server socket created on IP: '::'.
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
Sep 10 17:15:44 sol mariadbd[11264]: 2021-09-10 17:15:44 0 [ERROR] Aborting
Sep 10 17:15:44 sol systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit mariadb.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 10 17:15:44 sol systemd[1]: mariadb.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit mariadb.service has entered the 'failed' state with result 'exit-code'.
Sep 10 17:15:44 sol systemd[1]: Failed to start MariaDB 10.5.11 database server.
░░ Subject: A start job for unit mariadb.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit mariadb.service has finished with a failure.
░░
░░ The job identifier is 14067 and the job result is failed.
Code: Alles auswählen
root@sol:/var/lib# mysqld --initialize
bash: mysqld: Kommando nicht gefunden.
root@sol:/var/lib# sudo mysqld --initialize
2021-09-10 17:19:33 0 [Note] mysqld (mysqld 10.5.11-MariaDB-1) starting as process 11399 ...
mysqld: Please consult the Knowledge Base to find out how to run mysqld as root!
2021-09-10 17:19:33 0 [ERROR] Aborting
Debian hat für mariadb-server Version 1:10.5.11-1 in stable.
Das Ergebnis ist das Gleiche ob "su" oder "su -".
Ja, wohl falsch geschaut. 1:10.5.11-1 ist installiert.eggy hat geschrieben:10.09.2021 17:21:49Woher hast Du das Paket? Oder hast Du das was verwechselt?
Code: Alles auswählen
mariadb-server:all/bullseye 1:10.5.11-1 uptodate
Das könnte aber das Problem beim Installieren gewesen sein. Benutze immer "su -".
Ich habe das Datenbanksystem nicht nachträglich installiert. Ich habe es bei der Grundinstallation mit ausgewählt. Das war bereits als Bullseye noch testing war. Und bis zum Tag der Erstellung meines Beitrages lief es auch einwandfrei. An dem Tag allerdings wurde ein Update eingespielt und ich vermute, dass da etwas schief lief.
Hallo @Bequimao. Ich bin mir nicht ganz sicher, was mir deine Nachricht sagen soll?Bequimao hat geschrieben:10.09.2021 17:35:42Siehe dazu
viewtopic.php?f=29&t=181760&p=1280839#p1280714
Der Maintainer hat mein Anliegen bisher nicht verstanden. Es geht um das Migrationsprogramm mysql_upgrade.
Viele Grüße
Bequimão
Du könntest versuchen mitGibt es keine Möglichkeit, mariadb samt zugehörigen Paketen komplett zu entfernen und neu zu installieren? Oder muss ich da wirklich mein komplettes System neu aufsetzen?
Code: Alles auswählen
● mariadb.service - MariaDB 10.5.11 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2021-09-10 17:56:23 CEST; 3min 24s ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
CPU: 1ms
Code: Alles auswählen
root@sol:~# mysql -u root
mysql: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 "No such file or directory")
Fatal error in defaults handling. Program aborted
Code: Alles auswählen
root@sol:/etc# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
Nein.Es war ein Versuch wert. Gleiches Ergebnis...
Das kann ich nachvollziehen.Bequimao hat geschrieben:10.09.2021 19:55:092. Codeblock, Auszug aus dem Journal:
Die Zeilen mit ERROR beziehen sich auf fehlende Systemtabellen der Datenbank. Das sagt mir, daß zu einem Zeitpunkt eine Datenbank-Migration fehlgeschlagen ist. Ein Fehler, der vor dem letzten Update toleriert wurde, wird jetzt nicht mehr toleriert. Das Programm mysql_upgrade ist für den Check und Korrektur der Datenbanktabellen zuständig.
Und wie mache ich das? Ich habe bislang keine Informationen gefunden, die mir diesbezüglich weiter geholfen hätten. Das Problem ist, dass mysql_upgrade ebenfalls mit einer Fehlermeldung beendet wird, weil die Datei /etc/mysql/conf.d nicht existiert.Bequimao hat geschrieben:10.09.2021 19:55:09Die Pakete sind aktuell. Deswegen bringt eine Reinstallation nur der Pakete nichts. Statt einer kompletten Neuinstallation, kann es jetzt darum gehen, die Datenbank-Instanz zu löschen und eine neue Datenbank-Instanz aufzubauen.
Code: Alles auswählen
root@sol:~# mysql_upgrade --verbose --verbose other-options
mysql_upgrade: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 "No such file or directory")
Fatal error in defaults handling. Program aborted
Code: Alles auswählen
root@sol:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=7103116k,nr_inodes=1775779,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1433476k,mode=755)
/dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1999)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p3 on /var type ext4 (rw,relatime)
/dev/nvme0n1p5 on /tmp type ext4 (rw,relatime)
/dev/nvme0n1p6 on /home type ext4 (rw,relatime)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1433472k,nr_inodes=358368,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
Code: Alles auswählen
apt-get remove --purge mysql*
apt-get remove --purge mysql-apt-config
rm -rf /etc/mysql /var/lib/mysql
apt-get autoremove
apt-get autoclean
Code: Alles auswählen
apt install mariadb-server mariadb-client
Code: Alles auswählen
ls -lh /
Code: Alles auswählen
drwxr-xr-x 21 root root 600 12. Sep 13:01 run
Code: Alles auswählen
ls -l /var
Code: Alles auswählen
lrwxrwxrwx 1 root root 4 17. Feb 2020 run -> /run
Code: Alles auswählen
ls -l /var/run
Code: Alles auswählen
lrwxrwxrwx 1 root root 4 17. Feb 2020 /var/run -> /run