Versiunea Ubuntu:
Nu sunt disponibile module LSB.
ID distribuitor: Ubuntu
Descriere: Ubuntu 20.04.2 LTS
Lansare: 20.04
Nume de cod: focal
Am probleme pentru pornirea mysql, mereu că încerc să apară următorul mesaj:
Lucrarea pentru mysql.service a eșuat deoarece procesul de control a ieșit cu cod de eroare.
Consultați „systemctl status mysql.service” și „journalctl -xe” pentru detalii.
Am încercat să verific mysqld.log
folosind comanda coada -f /var/log/mysqld.log
, dar nu pare să existe unul.
Așa că am încercat să verific starea systemctl mysql.service
si apare asa:
mysql.service - MySQL Community Server
Încărcat: încărcat (/lib/systemd/system/mysql.service; dezactivat; prestabilit furnizor: activat)
Activ: eșuat (Rezultat: cod de ieșire) din Luni 2021-06-07 11:56:52 -03; acum 5h 18min
Documente: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Proces: 8885 ExecStartPre=/usr/share/mysql-8.0/mysql-systemd-start pre (cod=exit, status=1/FAILURE)
07 iunie 11:56:52 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Lucrare de repornire programată, contorul de repornire este la 5.
07 iunie 11:56:52 mauriciojr27-Inspiron-3442 systemd[1]: Serverul comunitar MySQL a fost oprit.
07 iunie 11:56:52 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Cererea de pornire a fost repetată prea repede.
07 iunie 11:56:52 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: A eșuat cu rezultatul „cod de ieșire”.
07 iunie 11:56:52 mauriciojr27-Inspiron-3442 systemd[1]: Nu s-a pornit MySQL Community Server.
Ale mele mysql.cnf
fisierul este configurat astfel:
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
În continuare, am încercat să instalez și să elimin MySQL APT Repository, dar apare acest mesaj:
Eroare la instalarea pachetului: subprocesul instalat, pachetul mysql-common, scriptul post-instalare returnează starea erorii ieșirea 2
Ieșirea comenzii sudo journalctl -u mysql.service -n 100
:
-- Jurnalele încep la sâmbătă 2021-01-09 07:11:57 -03, se termină la luni 2021-06-07 17:52:46 -03. --
07 iunie 10:37:25 mauriciojr27-Inspiron-3442 systemd[1]: Se pornește MySQL Community Server...
07 iunie 10:37:25 mauriciojr27-Inspiron-3442 mysql-systemd-start[73897]: configurația MySQL nu a fost găsită la /etc/mysql/my.cnf>
jun 07 10:37:25 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Procesul de control a ieșit, code=exited, status=1/FAILU>
07 iunie 10:37:25 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Eșuat cu rezultatul „exit-code”.
07 iunie 10:37:25 mauriciojr27-Inspiron-3442 systemd[1]: Nu s-a pornit MySQL Community Server.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Lucrare de repornire programată, contorul de repornire este la 3.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Serverul comunitar MySQL a fost oprit.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Se pornește MySQL Community Server...
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 mysql-systemd-start[73936]: configurația MySQL nu a fost găsită la /etc/mysql/my.cnf>
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Procesul de control a ieșit, cod=ieșit, stare=1/FAILU>
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: A eșuat cu rezultatul „exit-code”.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Nu s-a pornit MySQL Community Server.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Lucrare de repornire programată, contorul de repornire este la 4.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Serverul comunitar MySQL a fost oprit.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Se pornește MySQL Community Server...
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 mysql-systemd-start[73975]: configurația MySQL nu a fost găsită la /etc/mysql/my.cnf>
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Procesul de control a ieșit, cod=ieșit, stare=1/FAILU>
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: A eșuat cu rezultatul „exit-code”.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Nu s-a pornit MySQL Community Server.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Lucrare de repornire programată, contorul de repornire este la 5.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Serverul comunitar MySQL a fost oprit.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: Cererea de pornire a fost repetată prea repede.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: mysql.service: A eșuat cu rezultatul „exit-code”.
07 iunie 10:37:26 mauriciojr27-Inspiron-3442 systemd[1]: Nu s-a pornit MySQL Community Server.
-- Reporniți --
07 iunie 11:56:50 mauriciojr27-Inspiron-3442 systemd[1]: Se pornește MySQL Community Server...
Comanda sudo tail -f /var/log/mysql/error.log
sa nu returneze nimic
Cum pot remedia asta?