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 29/04/2016, à 14:52

tioumtioum

[ubuntu 16.04 installé de frais] mysql ne veux pas démarrer....

Bonjour,

je viens d'installer un serveur LAMP sur ma 16.04 (installation toute fraîche, pas de migration).

j'ai un peu galéré à l'installation pour des problèmes de dépendance (cf topic) mais bon au final l'installation à fonctionné (la commande d'installation utilisée: sudo apt-get install apache2 php mysql-server php-mysql libapache2-mod-php php-mbstring php-gettext).

J'ai pu accéder à phpmyadmin voir mes bdd... puis j'ai redémarré ma machine et là mysql ne démarre plus sad
Je précise que mon répertoire /var/log se situe dans un ramdisk (j'ai plein de ram alors j'économise les écritures sur le ssd), je précise ceci parce que apache ne redémarrait pas à cause de l'absence du répertoire /var/log/apache2 (mais les logs précisait bien le pb d'apache).
Avec mon ancienne installation en 14.04, ça marchais sans problème sur le ramdisk sans bidouille aucune....donc je sais pas si ça vient de là...:(

sudo systemctl is-enabled mysqlsql renvoi:

enabled

sudo service mysql start renvoi:

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 renvoi:

● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: activating (start-post) (Result: exit-code) since ven. 2016-04-29 14:46:24 CEST; 10s ago
  Process: 7014 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 7010 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
 Main PID: 7014 (code=exited, status=1/FAILURE);         : 7015 (mysql-systemd-s)
    Tasks: 3 (limit: 512)
   CGroup: /system.slice/mysql.service
           └─control
             ├─7015 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─7040 sleep 1

avril 29 14:46:24 thom-Aspire-3830T systemd[1]: Starting MySQL Community Server...
avril 29 14:46:24 thom-Aspire-3830T systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE

journalctl -xe renvoi:

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Unit entered failed state.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Failed with result 'exit-code'.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: Stopped MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a terminé son arrêt
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a terminé son arrêt.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: Starting MySQL Community Server...
-- Subject: L'unité (unit) mysql.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a commencé à démarrer.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE

journalctl -u mysql renvoi:

avril 29 14:46:54 thom-Aspire-3830T systemd[1]: Failed to start MySQL Community Server.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Unit entered failed state.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Failed with result 'exit-code'.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: Stopped MySQL Community Server.
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: Starting MySQL Community Server...
avril 29 14:46:54 thom-Aspire-3830T systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
avril 29 14:47:24 thom-Aspire-3830T systemd[1]: Failed to start MySQL Community Server.
avril 29 14:47:24 thom-Aspire-3830T systemd[1]: mysql.service: Unit entered failed state.
avril 29 14:47:24 thom-Aspire-3830T systemd[1]: mysql.service: Failed with result 'exit-code'.
avril 29 14:47:25 thom-Aspire-3830T systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
avril 29 14:47:25 thom-Aspire-3830T systemd[1]: Stopped MySQL Community Server.
avril 29 14:47:25 thom-Aspire-3830T systemd[1]: Starting MySQL Community Server...
avril 29 14:47:25 thom-Aspire-3830T systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
avril 29 14:47:55 thom-Aspire-3830T systemd[1]: Failed to start MySQL Community Server.
avril 29 14:47:55 thom-Aspire-3830T systemd[1]: mysql.service: Unit entered failed state.
avril 29 14:47:55 thom-Aspire-3830T systemd[1]: mysql.service: Failed with result 'exit-code'.
avril 29 14:47:55 thom-Aspire-3830T systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
avril 29 14:47:55 thom-Aspire-3830T systemd[1]: Stopped MySQL Community Server.
avril 29 14:47:55 thom-Aspire-3830T systemd[1]: Starting MySQL Community Server...
avril 29 14:47:55 thom-Aspire-3830T systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE

et là franchement je sais pas où/quoi regarder/faire... Dans tous ces logs je ne voit pas l'erreur...
Au secours !

Merci

Dernière modification par tioumtioum (Le 29/04/2016, à 14:54)


Thomas
Ubuntu Mate 16.04 64bits

Hors ligne

#2 Le 29/04/2016, à 17:19

tioumtioum

Re : [ubuntu 16.04 installé de frais] mysql ne veux pas démarrer....

En continuant la prospection, je m'appercoit que systemd (est ce bien lui ??) tente de démarrer mon serveur mysql environ 1 à 2 fois par minute en permanence...
on trouve dans syslog (je ne fait qu'un extrait d'une tentative, il y en a environ 1 à 2 par minute):

Apr 29 17:16:52 thom-Aspire-3830T systemd[1]: Failed to start MySQL Community Server.
Apr 29 17:16:52 thom-Aspire-3830T systemd[1]: mysql.service: Unit entered failed state.
Apr 29 17:16:52 thom-Aspire-3830T systemd[1]: mysql.service: Failed with result 'exit-code'.
Apr 29 17:16:52 thom-Aspire-3830T systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Apr 29 17:16:52 thom-Aspire-3830T systemd[1]: Stopped MySQL Community Server.
Apr 29 17:16:52 thom-Aspire-3830T systemd[1]: Starting MySQL Community Server...
Apr 29 17:16:52 thom-Aspire-3830T systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE

Thomas
Ubuntu Mate 16.04 64bits

Hors ligne

#3 Le 30/04/2016, à 10:34

bruno

Re : [ubuntu 16.04 installé de frais] mysql ne veux pas démarrer....

Malheureusement les logs de systemd ne sont pas très parlants… À tout hasard regarde s'il y a quelque chose dans /var/log/mysql/error.log

Les causes qui empêchent MySQL de démarrer peuvent être nombreuses :
- base(s) de données corrompue(s) ;
- erreur dans le fichiers de configuration (devrait apparaître dans les logs de systemd) ;
- problèmes de droits d'accès (ne devrait pas arriver sur une installation fraîche) ;
- problème avec apparmor (ne devrait pas arriver sur une installation fraîche) ;
- etc.

Hors ligne