Problem z instalacją MySQL (mariadb)

Konfiguracja serwerów, usług, itp.
neroxxx
Posty: 2
Rejestracja: 09 stycznia 2024, 17:27

Problem z instalacją MySQL (mariadb)

Post autor: neroxxx »

Dzień dobry, szukam pomocy przy uruchomieniu serwera MariaDB (świeża instalacja). Podczas instalacji mariadb i mariadb-client otrzymuję komunikat jak poniżej. Muszę zainstalować nextcloud na moim serwerze NAS i jest to jeden z kroków. Mój serwer działa na Debianie 12.4 (jądro 6.6.3).

Setting up mariadb-server (1:10.11.4-1~deb12u1) ...
Stopping MariaDB database server: mariadbd.
Starting MariaDB database server: mariadbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mariadb, action "start" failed.
dpkg: error processing package mariadb-server (--configure):
installed mariadb-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/home/adam#

Nie mam błędu podczas logowania do /var/log/mysql, ponieważ nie ma takiego katalogu. Instalacja została przerwana. Kiedy wpisuję „apt upgrade”, widzę, że 1 pakiet nie został w pełni zainstalowany lub usunięty. Debian próbuje go zainstalować, ale występuje taki błąd jak powyżej. Próbuję nawet mysql_install_db, ale bez powodzenia. Używam procesora ARMv5, więc czy to może być problem? Jak to naprawić?
Awatar użytkownika
dedito
Moderator
Posty: 3519
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Problem z instalacją MySQL (mariadb)

Post autor: dedito »

Wklej pełny log z instalacji.
neroxxx
Posty: 2
Rejestracja: 09 stycznia 2024, 17:27

Re: Problem z instalacją MySQL (mariadb)

Post autor: neroxxx »

W sensie co więcej ?
Mogę odinstalować wszystkie usługi co ma mariadb w nazwie i wkleić log instalacji od nowa o to chodzi ?

Kod: Zaznacz cały

root@debian:/etc/ssh# apt install mariadb-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libmariadb3 mariadb-client mariadb-client-core mariadb-common
  mariadb-server-core
Suggested packages:
  mailx mariadb-test netcat-openbsd
Recommended packages:
  libdbd-mariadb-perl | libdbd-mysql-perl libterm-readkey-perl
  libhtml-template-perl mariadb-plugin-provider-bzip2
  mariadb-plugin-provider-lz4 mariadb-plugin-provider-lzma
  mariadb-plugin-provider-lzo mariadb-plugin-provider-snappy pv
The following NEW packages will be installed:
  libmariadb3 mariadb-client mariadb-client-core mariadb-common mariadb-server
  mariadb-server-core
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/12.8 MB of archives.
After this operation, 161 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package mariadb-common.
(Reading database ... 36138 files and directories currently installed.)
Preparing to unpack .../mariadb-common_1%3a10.11.4-1~deb12u1_all.deb ...
Unpacking mariadb-common (1:10.11.4-1~deb12u1) ...
Selecting previously unselected package libmariadb3:armel.
Preparing to unpack .../libmariadb3_1%3a10.11.4-1~deb12u1_armel.deb ...
Unpacking libmariadb3:armel (1:10.11.4-1~deb12u1) ...
Selecting previously unselected package mariadb-client-core.
Preparing to unpack .../mariadb-client-core_1%3a10.11.4-1~deb12u1_armel.deb ...
Unpacking mariadb-client-core (1:10.11.4-1~deb12u1) ...
Selecting previously unselected package mariadb-client.
Preparing to unpack .../mariadb-client_1%3a10.11.4-1~deb12u1_armel.deb ...
Unpacking mariadb-client (1:10.11.4-1~deb12u1) ...
Selecting previously unselected package mariadb-server-core.
Preparing to unpack .../mariadb-server-core_1%3a10.11.4-1~deb12u1_armel.deb ...
Unpacking mariadb-server-core (1:10.11.4-1~deb12u1) ...
Setting up mariadb-common (1:10.11.4-1~deb12u1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mariadb-server.
(Reading database ... 36381 files and directories currently installed.)
Preparing to unpack .../mariadb-server_1%3a10.11.4-1~deb12u1_armel.deb ...
Unpacking mariadb-server (1:10.11.4-1~deb12u1) ...
Setting up libmariadb3:armel (1:10.11.4-1~deb12u1) ...
Setting up mariadb-server-core (1:10.11.4-1~deb12u1) ...
Setting up mariadb-client-core (1:10.11.4-1~deb12u1) ...
Setting up mariadb-client (1:10.11.4-1~deb12u1) ...
Setting up mariadb-server (1:10.11.4-1~deb12u1) ...
Stopping MariaDB database server: mariadbd.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on mariadb.service: No such file or directory
Starting MariaDB database server: mariadbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mariadb, action "start" failed.
dpkg: error processing package mariadb-server (--configure):
 installed mariadb-server package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Errors were encountered while processing:
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/etc/ssh#
fnmirk
Senior Member
Posty: 8273
Rejestracja: 03 grudnia 2007, 06:37

Re: Problem z instalacją MySQL (mariadb)

Post autor: fnmirk »

Przedstaw zawartość pliku: /etc/apt/sources.lst.
Awatar użytkownika
Yampress
Administrator
Posty: 6367
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Re: Problem z instalacją MySQL (mariadb)

Post autor: Yampress »

Spróbuj

Kod: Zaznacz cały

apt-get install -f
Aby doinstalowało brakujące pakiety
Albo polecenie reinstalujace baze.

Ta baza jest pusta czy stworzyłeś/imprtowalas już jakieś bazy?
ODPOWIEDZ