Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 06/03/2019, à 14:34

Bast666

Erreur démarrage mysql

Bonjour à tous,
j'ai un problème avec mon Ubuntu Studio : mon serveur mysql ne démarre plus...

sudo systemctl start mysql
me retourne :

Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.

systemctl status mysql.service me retourne :

● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: e
   Active: failed (Result: exit-code) since Thu 2019-03-07 16:16:55 CET; 18s ago
  Process: 8101 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exit

mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Service
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Schedul
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: Stopped MySQL Communit
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Start r
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Failed 
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: Failed to start MySQL 
lines 1-11/11 (END)...skipping...
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2019-03-07 16:16:55 CET; 18s ago
  Process: 8101 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)

mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: Stopped MySQL Community Server.
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Start request repeated too quickly.
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: mysql.service: Failed with result 'exit-code'.
mars 07 16:16:55 bast-Dell-System-Vostro-3750 systemd[1]: Failed to start MySQL Community Server.
 

journalctl -xe me retourne :

-- L'unité (unit) cups.service a terminé son démarrage, avec le résultat RESULT.
mars 07 16:18:31 bast-Dell-System-Vostro-3750 systemd[1]: Started Make remote CU
-- Subject: L'unité (unit) cups-browsed.service a terminé son démarrage
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- L'unité (unit) cups-browsed.service a terminé son démarrage, avec le résultat
mars 07 16:18:32 bast-Dell-System-Vostro-3750 rsyslogd[720]:  [origin software="
mars 07 16:18:48 bast-Dell-System-Vostro-3750 audit[8236]: AVC apparmor="DENIED"
mars 07 16:18:48 bast-Dell-System-Vostro-3750 audit[8236]: AVC apparmor="DENIED"
mars 07 16:18:48 bast-Dell-System-Vostro-3750 kernel: kauditd_printk_skb: 25 cal
mars 07 16:18:48 bast-Dell-System-Vostro-3750 kernel: audit: type=1400 audit(155
mars 07 16:18:48 bast-Dell-System-Vostro-3750 kernel: audit: type=1400 audit(155
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get sessio
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get sessio
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get sessio
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get sessio
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get sessio
mars 07 16:18:54 bast-Dell-System-Vostro-3750 colord[1366]: failed to get sessio
mars 07 16:19:01 bast-Dell-System-Vostro-3750 anacron[751]: Job `cron.daily' ter
mars 07 16:19:01 bast-Dell-System-Vostro-3750 anacron[751]: Normal exit (1 job r
mars 07 16:20:06 bast-Dell-System-Vostro-3750 kernel: r8169 0000:03:00.0 enp3s0:
lines 2603-2625/2625 (END)
-- 
-- L'unité (unit) cups.service a terminé son démarrage, avec le résultat RESULT.
mars 07 16:18:31 bast-Dell-System-Vostro-3750 systemd[1]: Started Make remote CUPS printers available locally.
-- Subject: L'unité (unit) cups-browsed.service a terminé son démarrage
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- L'unité (unit) cups-browsed.service a terminé son démarrage, avec le résultat RESULT.
mars 07 16:18:32 bast-Dell-System-Vostro-3750 rsyslogd[720]:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="720" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
mars 07 16:18:48 bast-Dell-System-Vostro-3750 audit[8236]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/cups/locale/" pid=8236 comm="cups-browsed" requested_mask="r" denied_mask="r" f
mars 07 16:18:48 bast-Dell-System-Vostro-3750 audit[8236]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/locale/" pid=8236 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=
mars 07 16:18:48 bast-Dell-System-Vostro-3750 kernel: kauditd_printk_skb: 25 callbacks suppressed
mars 07 16:18:48 bast-Dell-System-Vostro-3750 kernel: audit: type=1400 audit(1551971928.168:37): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/cups/locale/" pid=8236 comm="cups-browsed" re
mars 07 16:18:48 bast-Dell-System-Vostro-3750 kernel: audit: type=1400 audit(1551971928.168:38): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/usr/share/locale/" pid=8236 comm="cups-browsed" request
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get session [pid 8235]: Aucune donnée disponible
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get session [pid 8235]: Aucune donnée disponible
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get session [pid 8235]: Aucune donnée disponible
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get session [pid 8235]: Aucune donnée disponible
mars 07 16:18:53 bast-Dell-System-Vostro-3750 colord[1366]: failed to get session [pid 8235]: Aucune donnée disponible
mars 07 16:18:54 bast-Dell-System-Vostro-3750 colord[1366]: failed to get session [pid 8235]: Aucune donnée disponible
mars 07 16:19:01 bast-Dell-System-Vostro-3750 anacron[751]: Job `cron.daily' terminated
mars 07 16:19:01 bast-Dell-System-Vostro-3750 anacron[751]: Normal exit (1 job run)
mars 07 16:20:06 bast-Dell-System-Vostro-3750 kernel: r8169 0000:03:00.0 enp3s0: link down

Historique :
Hier, j'ai tenté de réinstaller mysql car j'avais perdu mes accès.
J'ai donc suivi ce tuto : https://doc.ubuntu-fr.org/mysql
(partie 7 réinstallation complète)

J'ai tenté de refaire cette manip et d'updater le système, mais rien n'y fait myslq refuse toujours de démarrer... Quelqu'un aurait il une idée ?
Merci d'avance

Dernière modification par Bast666 (Le 07/03/2019, à 17:21)

Hors ligne

#2 Le 06/03/2019, à 16:21

bruno

Re : Erreur démarrage mysql

Bonjour,

Normalement la procédure de la doc aurait du fonctionner.

Tes retours ont les lignes coupés, ce qui n'aide pas…

Regarde les contenu des logs : /var/log/mysql.log et /var/log/mysql.err

Hors ligne

#3 Le 07/03/2019, à 17:28

Bast666

Re : Erreur démarrage mysql

Bonjour et merci de vous être arrêté sur mon thread ;-)
Je viens de mettre mon premier post à jour avec les copies complètes cette fois. Peut être saurez-vous identifier le problème...
(mes log mysql sont vides)

Petite précision, à toutes fins utiles, quand j'ai suivi le tuto mentionné plus haut, j'ai vraiment eu l'impression que mes commandes n'ont eu aucun effet.
En faisant 'entrée' je retombais sur l'invite sans aucune confirmation.

J'ai saisi, ligne par ligne :

sudo apt autoremove --purge mysql-server
sudo mv /var/lib/mysql /var/lib/mysql.bak
sudo mv /etc/mysql /etc/mysql.bak
sudo mkdir /etc/mysql /etc/mysql/conf.d
sudo apt clean

Et il me semble avoir eu une erreur sur : sudo mv /etc/mysql /etc/mysql.bak
Voilà, j'espère qu ça peut aider...

Merci !

Hors ligne

#4 Le 07/03/2019, à 18:11

bruno

Re : Erreur démarrage mysql

Après avoir exécuté ces commandes qui purgent toute installation de mysql-server  il faut bien entendu réinstaller :

sudo apt install mysql-server

Le retour de journalctl -xe n'est utile qu’immédiatement après avoir tenté de redémarrer le service mysql, sinon il faut donner :

journalctl -u mysql

Dernière modification par bruno (Le 07/03/2019, à 18:12)

Hors ligne

#5 Le 07/03/2019, à 18:48

krodelabestiole

Re : Erreur démarrage mysql

Bast666 a écrit :
sudo apt autoremove --purge mysql-server

attention, lis bien la doc, ou mieux : copie-colle !
https://doc.ubuntu-fr.org/mysql#reinstallation_complete

sudo apt autoremove --purge mysql-server\* mariadb-server\*

en fonction de la manière dont tu as installé, ta commande ne supprimera pas nécessairement par ex. mysql-server-5.7 ou mysql-server-core-5.7

En ligne