dpkg -l | awk '/^rc/{print $2}' | xargs -r sudo dpkg -P m'a demandé si je voulais effacer mes bases SQL. J'ai bien sûr répondu non, mais je n'arrive plus a y accéder. Avec un peu de change, j'ai juste effacé la config mysql mais les bases sont encore là ? Je vais farfouiller...
root@bast-Dell-System-Vostro-3750:/home/bast# systemctl status mysql.service
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset>
Active: failed (Result: exit-code) since Thu 2020-07-09 18:00:49 CEST; 13s>
Process: 2421 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=e>
Process: 2429 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
Main PID: 2429 (code=exited, status=1/FAILURE)
Status: "Server startup in progress"
Error: 2 (Aucun fichier ou dossier de ce type)
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Sched>
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: Stopped MySQL Commun>
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Start>
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Faile>
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: Failed to start MySQ>
lines 1-14/14 (END)
bast@bast-Dell-System-Vostro-3750:~$ journalctl -xe
-- raison de sa configuration avec le paramètre Restart=.
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: Stopped MySQL Commun>
-- Subject: L'unité (unit) mysql.service a terminé son arrêt
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) mysql.service a terminé son arrêt.
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Start>
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Faile>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit mysql.service has entered the 'failed' state with result 'exit-code>
juil. 09 18:00:49 bast-Dell-System-Vostro-3750 systemd[1]: Failed to start MySQ>
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
juil. 09 18:01:14 bast-Dell-System-Vostro-3750 wpa_supplicant[766]: wlp1s0: CTR>
juil. 09 18:01:27 bast-Dell-System-Vostro-3750 wpa_supplicant[766]: wlp1s0: CTR>
juil. 09 18:01:36 bast-Dell-System-Vostro-3750 sudo[2252]: pam_unix(sudo:sessio>
bast@bast-Dell-System-Vostro-3750:~$
bast@bast-Dell-System-Vostro-3750:~$ cat /var/log/mysql/mysql_error.log
cat: /var/log/mysql/mysql_error.log: Aucun fichier ou dossier de ce type
bast@bast-Dell-System-Vostro-3750:~$