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 31/05/2018, à 19:20

Odd_HD

service MySQL ne fonctionne plus

Bonjour a tous

Depuis une semaine, j'ai fait une mise a total de mon serveur Ubuntu 16.04
Et MySQL ne fonctionne plus depuis.
J'ai cherché sur internet sans trouver des solutions
Les commandes que j'ai déjà essayées :

sudo apt remove mysql*
sudo apt update
sudo apt  full-upgrade
sudo apt-get install mysql-server
sudo dpkg-reconfigure mysql-server-5.7


odd@SERVEUR:~$ sudo service mysql restart
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
odd@SERVEUR:~$ systemctl status mysql.service
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
   Active: inactive (dead) (Result: exit-code) since jeu. 2018-05-31 19:16:54 CE
  Process: 1318 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exit

mai 31 19:16:54 SERVEUR systemd[1]: Failed to start MySQL Community Server.
mai 31 19:16:54 SERVEUR systemd[1]: mysql.service: Unit entered failed state.
mai 31 19:16:54 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code
mai 31 19:16:54 SERVEUR systemd[1]: mysql.service: Service hold-off time over, s
mai 31 19:16:54 SERVEUR systemd[1]: Stopped MySQL Community Server.
mai 31 19:16:54 SERVEUR systemd[1]: mysql.service: Start request repeated too qu
mai 31 19:16:54 SERVEUR systemd[1]: Failed to start MySQL Community Server.

odd@SERVEUR:~$

Dernière modification par Odd_HD (Le 31/05/2018, à 19:26)

Hors ligne

#2 Le 01/06/2018, à 05:50

krodelabestiole

Re : service MySQL ne fonctionne plus

quels est le retour de

journalctl -xe

(ça risque d'être un peu long, un bout récent qui correspond à une tentative de lancer MySQL devrait suffire)


mai 31 19:16:54 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code

il manque des bouts à droite qui pourraient être utiles.

Hors ligne

#3 Le 01/06/2018, à 14:38

Odd_HD

Re : service MySQL ne fonctionne plus

Ah oui, je n'avais pas vu qu'il manquait le bout de certaines lignes.

odd@SERVEUR:~$ systemctl status mysql.service
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: exit-code) since ven. 2018-06-01 14:27:48 CEST; 56s ago
  Process: 18887 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)

juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Control process exited, code=exited status=1
juin 01 14:27:48 SERVEUR systemd[1]: Failed to start MySQL Community Server.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Unit entered failed state.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code'.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
juin 01 14:27:48 SERVEUR systemd[1]: Stopped MySQL Community Server.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Start request repeated too quickly.
juin 01 14:27:48 SERVEUR systemd[1]: Failed to start MySQL Community Server.
odd@SERVEUR:~$ 

J'ai mis uniquement les lignes d'aujourd'hui :

juin 01 14:27:36 SERVEUR sshd[18657]: pam_ecryptfs: pam_sm_authenticate: /home/odd is already mounted
juin 01 14:27:36 SERVEUR sshd[18657]: Accepted password for odd from 192.168.1.16 port 39558 ssh2
juin 01 14:27:36 SERVEUR sshd[18657]: pam_unix(sshd:session): session opened for user odd by (uid=0)
juin 01 14:27:36 SERVEUR systemd[1]: Created slice User Slice of odd.
-- Subject: L'unité (unit) user-1000.slice a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) user-1000.slice a terminé son démarrage, avec le résultat done.
juin 01 14:27:36 SERVEUR systemd[1]: Starting User Manager for UID 1000...
-- Subject: L'unité (unit) user@1000.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) user@1000.service a commencé à démarrer.
juin 01 14:27:36 SERVEUR systemd-logind[1384]: New session 139 of user odd.
-- Subject: Une nouvelle session 139 a été créée pour l'utilisateur odd
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
-- 
-- Une nouvelle session a été créée pour l'utilisateur odd avec
-- l'identifiant (ID) 139.
-- 
-- Le processus maître de la session est 18657.
juin 01 14:27:36 SERVEUR systemd[1]: Started Session 139 of user odd.
-- Subject: L'unité (unit) session-139.scope a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) session-139.scope a terminé son démarrage, avec le résultat done.
juin 01 14:27:36 SERVEUR systemd[18661]: pam_unix(systemd-user:session): session opened for user odd by (uid=0)
juin 01 14:27:36 SERVEUR systemd[18661]: Signature not found in user keyring
juin 01 14:27:36 SERVEUR systemd[18661]: Perhaps try the interactive 'ecryptfs-mount-private'
juin 01 14:27:36 SERVEUR systemd[18661]: Reached target Timers.
-- Subject: L'unité (unit) UNIT a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
juin 01 14:27:36 SERVEUR systemd[18661]: Reached target Sockets.
-- Subject: L'unité (unit) UNIT a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
juin 01 14:27:36 SERVEUR systemd[18661]: Reached target Paths.
-- Subject: L'unité (unit) UNIT a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
juin 01 14:27:36 SERVEUR systemd[18661]: Reached target Basic System.
-- Subject: L'unité (unit) UNIT a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
juin 01 14:27:36 SERVEUR systemd[18661]: Starting Run Click user-level hooks...
-- Subject: L'unité (unit) UNIT a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) UNIT a commencé à démarrer.
juin 01 14:27:37 SERVEUR click[18671]: ** (process:18676): WARNING **: Unable to get manifest for 'com.ubuntu.gallery' package: com.ubuntu.gallery does not exist in any database for user odd
juin 01 14:27:37 SERVEUR click[18671]: ** (process:18676): CRITICAL **: manifest_version: assertion '*manifest != NULL' failed
juin 01 14:27:37 SERVEUR click[18671]: ** (process:18676): CRITICAL **: click_triplet_to_app_id: assertion 'version != NULL' failed
juin 01 14:27:37 SERVEUR click[18671]: (process:18676): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
juin 01 14:27:37 SERVEUR click[18671]: (process:18676): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
juin 01 14:27:37 SERVEUR click[18671]: ** (process:18676): WARNING **: Unable to get manifest for 'com.ubuntu.gallery' package: com.ubuntu.gallery does not exist in any database for user odd
juin 01 14:27:37 SERVEUR click[18671]: ** (process:18676): CRITICAL **: manifest_version: assertion '*manifest != NULL' failed
juin 01 14:27:37 SERVEUR click[18671]: ** (process:18676): CRITICAL **: click_triplet_to_app_id: assertion 'version != NULL' failed
juin 01 14:27:37 SERVEUR click[18671]: (process:18676): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
juin 01 14:27:37 SERVEUR click[18671]: (process:18676): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
juin 01 14:27:37 SERVEUR systemd[18661]: Started Run Click user-level hooks.
-- Subject: L'unité (unit) UNIT a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
juin 01 14:27:37 SERVEUR systemd[18661]: Reached target Default.
-- Subject: L'unité (unit) UNIT a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
juin 01 14:27:37 SERVEUR systemd[18661]: Startup finished in 611ms.
-- Subject: Le démarrage du système est terminé
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Tous les services nécessaires au démarrage du système ont été lancés avec
-- succès. Notez que cela ne signifie pas que le système est maintenant au
-- repos, car des services peuvent encore être en train de terminer leur
-- démarrage.
-- 
-- Le chargement du noyau a nécessité KERNEL_USEC microsecondes.
--
-- Le chargement du « RAM disk » initial a nécessité INITRD_USEC microsecondes.
-- 
-- Le chargement de l'espace utilisateur a nécessité 611706 microsecondes.
juin 01 14:27:37 SERVEUR systemd[1]: Started User Manager for UID 1000.
-- Subject: L'unité (unit) user@1000.service a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) user@1000.service a terminé son démarrage, avec le résultat done.
juin 01 14:27:47 SERVEUR sudo[18838]: pam_ecryptfs: pam_sm_authenticate: /home/odd is already mounted
juin 01 14:27:47 SERVEUR sudo[18838]:      odd : TTY=pts/9 ; PWD=/home/odd ; USER=root ; COMMAND=/usr/sbin/service mysql restart
juin 01 14:27:47 SERVEUR sudo[18838]: pam_unix(sudo:session): session opened for user root by odd(uid=0)
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR mysql-systemd-start[18850]: MySQL system database not found in /var/lib/mysql. Please run mysqld --initialize.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Control process exited, code=exited status=1
juin 01 14:27:47 SERVEUR systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Unit entered failed state.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code'.
juin 01 14:27:47 SERVEUR sudo[18838]: pam_unix(sudo:session): session closed for user root
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR mysql-systemd-start[18860]: MySQL system database not found in /var/lib/mysql. Please run mysqld --initialize.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Control process exited, code=exited status=1
juin 01 14:27:47 SERVEUR systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Unit entered failed state.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code'.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR mysql-systemd-start[18869]: MySQL system database not found in /var/lib/mysql. Please run mysqld --initialize.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Control process exited, code=exited status=1
juin 01 14:27:47 SERVEUR systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Unit entered failed state.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code'.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR 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.
juin 01 14:27:47 SERVEUR mysql-systemd-start[18878]: MySQL system database not found in /var/lib/mysql. Please run mysqld --initialize.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Control process exited, code=exited status=1
juin 01 14:27:47 SERVEUR systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Unit entered failed state.
juin 01 14:27:47 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code'.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
juin 01 14:27:48 SERVEUR 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.
juin 01 14:27:48 SERVEUR 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.
juin 01 14:27:48 SERVEUR mysql-systemd-start[18887]: MySQL system database not found in /var/lib/mysql. Please run mysqld --initialize.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Control process exited, code=exited status=1
juin 01 14:27:48 SERVEUR systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Unit entered failed state.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Failed with result 'exit-code'.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
juin 01 14:27:48 SERVEUR 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.
juin 01 14:27:48 SERVEUR systemd[1]: mysql.service: Start request repeated too quickly.
juin 01 14:27:48 SERVEUR systemd[1]: Failed to start MySQL Community Server.
-- Subject: L'unité (unit) mysql.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) mysql.service a échoué, avec le résultat failed.
juin 01 14:29:06 SERVEUR systemd[1]: dev-disk-by\x2duuid-7dc8d7ac\x2d1cf7\x2d49d3\x2daf4f\x2d7a9a501b54b8.device: Job dev-disk-by\x2duuid-7dc8d7ac\x2d1cf7\x2d49d3\x2daf4f\x2d7a9a501b54b8.device/start timed
juin 01 14:29:06 SERVEUR systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-7dc8d7ac\x2d1cf7\x2d49d3\x2daf4f\x2d7a9a501b54b8.device.
-- Subject: L'unité (unit) dev-disk-by\x2duuid-7dc8d7ac\x2d1cf7\x2d49d3\x2daf4f\x2d7a9a501b54b8.device a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) dev-disk-by\x2duuid-7dc8d7ac\x2d1cf7\x2d49d3\x2daf4f\x2d7a9a501b54b8.device a échoué, avec le résultat timeout.
juin 01 14:29:06 SERVEUR systemd[1]: Dependency failed for /media/Telechargements.
-- Subject: L'unité (unit) media-Telechargements.mount a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) media-Telechargements.mount a échoué, avec le résultat dependency.
juin 01 14:29:06 SERVEUR systemd[1]: media-Telechargements.mount: Job media-Telechargements.mount/start failed with result 'dependency'.
juin 01 14:29:06 SERVEUR systemd[1]: dev-disk-by\x2duuid-7dc8d7ac\x2d1cf7\x2d49d3\x2daf4f\x2d7a9a501b54b8.device: Job dev-disk-by\x2duuid-7dc8d7ac\x2d1cf7\x2d49d3\x2daf4f\x2d7a9a501b54b8.device/start faile
lines 2354-2414/2414 (END)

Dernière modification par Odd_HD (Le 01/06/2018, à 14:40)

Hors ligne

#4 Le 01/06/2018, à 15:04

krodelabestiole

Re : service MySQL ne fonctionne plus

la ligne intéresssante c'est

juin 01 14:27:48 SERVEUR mysql-systemd-start[18887]: MySQL system database not found in /var/lib/mysql. Please run mysqld --initialize.

visiblement l'installation a pas trop fonctionné. pour réinstaller complètement MySQL, entre les commandes suivantes :

sudo apt autoremove --purge mysql\* mariadb\*
sudo apt clean
sudo mv /var/lib/mysql /var/lib/mysql_bak
sudo mv /etc/mysql /etc/mysql_bak
sudo apt install mysql-server

Hors ligne

#5 Le 01/06/2018, à 16:44

Odd_HD

Re : service MySQL ne fonctionne plus

Merci 1000 fois smile
tout fonctionne

Hors ligne