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 11/08/2016, à 15:33

Snaeffel

[ABANDONNÉ] Impossible de lancer MySQL

Bonjour, j'ai un problème.

Ce matin j'ai fait la mise à niveau de 14.04 vers 16.04, et ça s'est pas bien passé (erreurs à la fin).
J'ai redémarré, j'étais bien sous 16.04, mais avec des soucis : problème d'affichage, Virtualbox en carafe, mais tout ça c'est réglé.

Là, de ce qu'ai pu voir, tout fonctionne correctement, ça a l'air stable, sauf le lancement de MySQL (Apache et PHP c'est bon). J'ai supprimer les paquets (il me restait des morceaux d'ancienne version) et réinstallé, même problème, MySQL refuse de se lancer.

Quand je fais :

sudo service mysql start

J'ai :

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

Alors je fais :

systemctl status mysql.service

J'ai :

● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: activating (start-post) (Result: exit-code) since jeu. 2016-08-11 15:08:07 CEST; 22s ago
  Process: 19129 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 19126 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
 Main PID: 19129 (code=exited, status=1/FAILURE);         : 19130 (mysql-systemd-s)
   CGroup: /system.slice/mysql.service
           └─control
             ├─19130 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─19180 sleep 1

août 11 15:08:07 serveur systemd[1]: Starting MySQL Community Server...
août 11 15:08:07 serveur systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE

Et pour :

journalctl -xe

J'ai :

août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.a11y.Bus[3807]: (process:3835): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission denied.  dconf will not work properly.
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 serveur org.freedesktop.Notifications[3807]: (notify-osd:7821): dconf-CRITICAL **: unable to create file '/home/matthieu/.cache/dconf/user': Permission non accordée.  dconf will not work pr
août 11 15:09:07 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.
août 11 15:09:07 serveur systemd[1]: mysql.service: Unit entered failed state.
août 11 15:09:07 serveur systemd[1]: mysql.service: Failed with result 'exit-code'.
août 11 15:09:07 serveur systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
août 11 15:09:07 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.
août 11 15:09:07 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.
août 11 15:09:08 serveur systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
lines 968-1016/1016 (END)

On dirait un problème de permissions, mais je sais pas quoi faire... au secours.

Merci d'avance.

Dernière modification par Snaeffel (Le 18/08/2016, à 15:25)

Hors ligne

#2 Le 11/08/2016, à 16:13

Snaeffel

Re : [ABANDONNÉ] Impossible de lancer MySQL

Du nouveau, j'ai tenté ça :

sudo dpkg-reconfigure mysql-server-5.7

Et ça fonctionne ! Mais quand je redémarre la machine, j'ai à nouveau le problème.

Si je le refais, j'ai ce message :

Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.13, use --force if you still need to run mysql_upgrade

Donc je suppose qu'il ne se passe rien, mais pourtant MySQL démarre ensuite (???)

Hors ligne

#3 Le 11/08/2016, à 17:48

donut

Re : [ABANDONNÉ] Impossible de lancer MySQL

Salut,
Pas beaucoup d’éléments, il faudrait regarder dans /var/log/mysql/error.log ?
Sinon augmenter le niveau de verbosité : https://dev.mysql.com/doc/refman/5.7/en/error-log.html


https://utux.fr (blog perso)

Hors ligne

#4 Le 12/08/2016, à 08:57

Snaeffel

Re : [ABANDONNÉ] Impossible de lancer MySQL

Salut,

Le soucis, c'est qu'au démarrage je n'ai pas de dossier mysql dans /var/log. Comme si il essayait même pas de démarrer.
Par contre il est créé quand je fais

sudo dpkg-reconfigure mysql-server-5.7

Le contenu de error.log :

2016-08-12T06:43:38.290341Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2016-08-12T06:43:38.290383Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2016-08-12T06:43:38.429137Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-08-12T06:43:38.429496Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.13-0ubuntu0.16.04.2-log) starting as process 6286 ...
2016-08-12T06:43:38.433391Z 0 [Note] InnoDB: PUNCH HOLE support available
2016-08-12T06:43:38.433408Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-12T06:43:38.433412Z 0 [Note] InnoDB: Uses event mutexes
2016-08-12T06:43:38.433415Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-08-12T06:43:38.433418Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-08-12T06:43:38.433423Z 0 [Note] InnoDB: Using Linux native AIO
2016-08-12T06:43:38.433999Z 0 [Note] InnoDB: Number of pools: 1
2016-08-12T06:43:38.435262Z 0 [Note] InnoDB: Using CPU crc32 instructions
2016-08-12T06:43:38.436122Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-08-12T06:43:38.442075Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-08-12T06:43:38.443298Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2016-08-12T06:43:38.461463Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2016-08-12T06:43:38.491749Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-08-12T06:43:38.491784Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2016-08-12T06:43:38.522075Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2016-08-12T06:43:38.522936Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-08-12T06:43:38.522945Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2016-08-12T06:43:38.523972Z 0 [Note] InnoDB: 5.7.13 started; log sequence number 9472175
2016-08-12T06:43:38.524849Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2016-08-12T06:43:38.525282Z 0 [Note] Plugin 'FEDERATED' is disabled.
2016-08-12T06:43:38.532935Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2016-08-12T06:43:38.532946Z 0 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
2016-08-12T06:43:38.532955Z 0 [Note]   - '127.0.0.1' resolves to '127.0.0.1';
2016-08-12T06:43:38.532973Z 0 [Note] Server socket created on IP: '127.0.0.1'.
2016-08-12T06:43:38.548764Z 0 [Note] InnoDB: Buffer pool(s) load completed at 160812  8:43:38
2016-08-12T06:43:38.562369Z 0 [Note] Event Scheduler: Loaded 0 events
2016-08-12T06:43:38.562472Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.13-0ubuntu0.16.04.2-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
2016-08-12T06:43:39.293154Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2016-08-12T06:43:39.407930Z 0 [Note] Giving 0 client threads a chance to die gracefully
2016-08-12T06:43:39.407942Z 0 [Note] Shutting down slave threads
2016-08-12T06:43:39.407945Z 0 [Note] Forcefully disconnecting 0 remaining clients
2016-08-12T06:43:39.407987Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2016-08-12T06:43:39.408239Z 0 [Note] Binlog end
2016-08-12T06:43:39.408454Z 0 [Note] Shutting down plugin 'ngram'
2016-08-12T06:43:39.408457Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2016-08-12T06:43:39.408459Z 0 [Note] Shutting down plugin 'ARCHIVE'
2016-08-12T06:43:39.408460Z 0 [Note] Shutting down plugin 'partition'
2016-08-12T06:43:39.408461Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2016-08-12T06:43:39.408463Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-08-12T06:43:39.408464Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-08-12T06:43:39.408467Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-08-12T06:43:39.408468Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-08-12T06:43:39.408469Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2016-08-12T06:43:39.408471Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-08-12T06:43:39.408472Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2016-08-12T06:43:39.408473Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-08-12T06:43:39.408474Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2016-08-12T06:43:39.408475Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-08-12T06:43:39.408476Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-08-12T06:43:39.408477Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2016-08-12T06:43:39.408478Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-08-12T06:43:39.408479Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2016-08-12T06:43:39.408480Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-08-12T06:43:39.408481Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2016-08-12T06:43:39.408482Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2016-08-12T06:43:39.408483Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-08-12T06:43:39.408484Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-08-12T06:43:39.408485Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-08-12T06:43:39.408486Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-08-12T06:43:39.408487Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-08-12T06:43:39.408488Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-08-12T06:43:39.408489Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2016-08-12T06:43:39.408490Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2016-08-12T06:43:39.408491Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2016-08-12T06:43:39.408492Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2016-08-12T06:43:39.408493Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2016-08-12T06:43:39.408494Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2016-08-12T06:43:39.408495Z 0 [Note] Shutting down plugin 'InnoDB'
2016-08-12T06:43:39.408529Z 0 [Note] InnoDB: FTS optimize thread exiting.
2016-08-12T06:43:39.408584Z 0 [Note] InnoDB: Starting shutdown...
2016-08-12T06:43:39.508693Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2016-08-12T06:43:39.508822Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 160812  8:43:39
2016-08-12T06:43:40.212441Z 0 [Note] InnoDB: Shutdown completed; log sequence number 9472194
2016-08-12T06:43:40.213711Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2016-08-12T06:43:40.213721Z 0 [Note] Shutting down plugin 'MyISAM'
2016-08-12T06:43:40.213727Z 0 [Note] Shutting down plugin 'CSV'
2016-08-12T06:43:40.213729Z 0 [Note] Shutting down plugin 'MEMORY'
2016-08-12T06:43:40.213732Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2016-08-12T06:43:40.213734Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-08-12T06:43:40.213750Z 0 [Note] Shutting down plugin 'sha256_password'
2016-08-12T06:43:40.213752Z 0 [Note] Shutting down plugin 'mysql_native_password'
2016-08-12T06:43:40.213846Z 0 [Note] Shutting down plugin 'binlog'
2016-08-12T06:43:40.214024Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

2016-08-12T06:43:40.308850Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2016-08-12T06:43:40.308889Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2016-08-12T06:43:40.446481Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-08-12T06:43:40.446836Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.13-0ubuntu0.16.04.2-log) starting as process 6367 ...
2016-08-12T06:43:40.449540Z 0 [Note] InnoDB: PUNCH HOLE support available
2016-08-12T06:43:40.449548Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-08-12T06:43:40.449550Z 0 [Note] InnoDB: Uses event mutexes
2016-08-12T06:43:40.449554Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-08-12T06:43:40.449555Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
2016-08-12T06:43:40.449557Z 0 [Note] InnoDB: Using Linux native AIO
2016-08-12T06:43:40.449715Z 0 [Note] InnoDB: Number of pools: 1
2016-08-12T06:43:40.449777Z 0 [Note] InnoDB: Using CPU crc32 instructions
2016-08-12T06:43:40.450436Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-08-12T06:43:40.455132Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-08-12T06:43:40.456088Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2016-08-12T06:43:40.467337Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2016-08-12T06:43:40.474125Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-08-12T06:43:40.474178Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2016-08-12T06:43:40.503750Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2016-08-12T06:43:40.504509Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-08-12T06:43:40.504520Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2016-08-12T06:43:40.505040Z 0 [Note] InnoDB: Waiting for purge to start
2016-08-12T06:43:40.555158Z 0 [Note] InnoDB: 5.7.13 started; log sequence number 9472194
2016-08-12T06:43:40.555574Z 0 [Note] Plugin 'FEDERATED' is disabled.
2016-08-12T06:43:40.555584Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2016-08-12T06:43:40.556597Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2016-08-12T06:43:40.556606Z 0 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
2016-08-12T06:43:40.556612Z 0 [Note]   - '127.0.0.1' resolves to '127.0.0.1';
2016-08-12T06:43:40.556628Z 0 [Note] Server socket created on IP: '127.0.0.1'.
2016-08-12T06:43:40.556755Z 0 [Note] InnoDB: Buffer pool(s) load completed at 160812  8:43:40
2016-08-12T06:43:40.560482Z 0 [Note] Event Scheduler: Loaded 0 events
2016-08-12T06:43:40.560562Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.13-0ubuntu0.16.04.2-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
2016-08-12T06:43:41.311789Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2016-08-12T06:43:41.315343Z 3 [Note] Access denied for user 'root'@'localhost' (using password: NO)

Et là MySQL démarre, et rien de nouveau dans error.log

Je ne sais pas comment augmenter le niveau de verbosité. Il faut éditer un fichier de config ?

Hors ligne

#5 Le 12/08/2016, à 10:41

donut

Re : [ABANDONNÉ] Impossible de lancer MySQL

Essaie :

mysqld --console

https://utux.fr (blog perso)

Hors ligne

#6 Le 12/08/2016, à 11:01

Snaeffel

Re : [ABANDONNÉ] Impossible de lancer MySQL

Ça renvoie ceci :

matthieu@serveur:~$ mysqld --console
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13 - Permission denied)
2016-08-12T08:50:22.846372Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-08-12T08:50:22.846436Z 0 [Warning] Can't create test file /var/lib/mysql/serveur.lower-test
2016-08-12T08:50:22.846458Z 0 [Note] mysqld (mysqld 5.7.13-0ubuntu0.16.04.2) starting as process 5515 ...
2016-08-12T08:50:22.847566Z 0 [Warning] Can't create test file /var/lib/mysql/serveur.lower-test
2016-08-12T08:50:22.847573Z 0 [Warning] Can't create test file /var/lib/mysql/serveur.lower-test
2016-08-12T08:50:22.847592Z 0 [ERROR] failed to set datadir to /var/lib/mysql/
2016-08-12T08:50:22.847596Z 0 [ERROR] Aborting

2016-08-12T08:50:22.847606Z 0 [Note] Binlog end
2016-08-12T08:50:22.847665Z 0 [Note] mysqld: Shutdown complete

Ça sent le problème de permissions, non ?

drwx------ 7 mysql         mysql         4096 août  12 11:23 mysql

Entre temps j'ai supprimé tous les paquets, ainsi que les répertoires /etc/mysql et /var/lib/mysql, et refait l'install de mysql-server, c'est toujours pareil.

Si j'ajoute

sudo dpkg-reconfigure mysql-server-5.7

à mon fichier /etc/rc.local pour l'exécuter au démarrage, le service se lance, ça fonctionne nickel (mais c'est bien crade comme solution).

Dernière modification par Snaeffel (Le 12/08/2016, à 11:25)

Hors ligne

#7 Le 12/08/2016, à 11:54

donut

Re : [ABANDONNÉ] Impossible de lancer MySQL

ls -l /var/lib | grep mysql
ls -l /var/lib/mysql

En effet ça sent le répertoire manquant ou problème de permission.


https://utux.fr (blog perso)

Hors ligne

#8 Le 12/08/2016, à 13:23

Snaeffel

Re : [ABANDONNÉ] Impossible de lancer MySQL

matthieu@serveur:/$ ls -l /var/lib | grep mysql
drwx------ 7 mysql         mysql         4096 août  12 13:17 mysql
drwx------ 2 mysql         mysql         4096 août  12 09:45 mysql-files
drwx------ 2 mysql         mysql         4096 août  11 09:27 mysql-keyring
drwxr-xr-x 2 root          root          4096 juil. 20 20:08 mysql-upgrade
matthieu@serveur:/$ ls -l /var/lib/mysql
ls: impossible d'ouvrir le répertoire '/var/lib/mysql': Permission non accordée

Hors ligne

#9 Le 12/08/2016, à 23:46

donut

Re : [ABANDONNÉ] Impossible de lancer MySQL

Ah oui pardon, je suis bête, je n'ai pas vu que tu as fait les manipulations sans être root.
Refais le mysqld --console en root ou avec sudo, ce sera mieux tongue


https://utux.fr (blog perso)

Hors ligne

#10 Le 13/08/2016, à 08:41

bruno

Re : [ABANDONNÉ] Impossible de lancer MySQL

Bonjour,

La présence du dossier /var/lib/mysql/mysql-upgrade indique que le processus de mise a jour ne s'est pas terminé correctement. En effet, ce dossier est créé temporairement lors d'une mise à niveau d'une version de mysql-server vers une autre pour migrer les bases de données.

Hors ligne

#11 Le 13/08/2016, à 09:20

Snaeffel

Re : [ABANDONNÉ] Impossible de lancer MySQL

sudo mysqld --console

ne me renvoie rien du tout... MySQL n'est pas lancé pour autant, et je n'ai pas de dossier mysql dans /var/log

Dans /var/log/syslog toute les 30 secondes j'ai :

Aug 13 09:14:12 serveur systemd[1]: Failed to start MySQL Community Server.
Aug 13 09:14:12 serveur systemd[1]: mysql.service: Unit entered failed state.
Aug 13 09:14:12 serveur systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 13 09:14:12 serveur systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Aug 13 09:14:12 serveur systemd[1]: Stopped MySQL Community Server.
Aug 13 09:14:12 serveur systemd[1]: Starting MySQL Community Server...
Aug 13 09:14:12 serveur systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE

Hors ligne

#12 Le 18/08/2016, à 15:25

Snaeffel

Re : [ABANDONNÉ] Impossible de lancer MySQL

Bonjour,

J'ai arrêté de chercher, je suis reparti d'une install fraîche en 16.04, tout réinstallé proprement et restauré les données, c'est ok.
Je pense qu'à la prochaine mise à niveau, je ferais pareil...

Merci à vous de m'avoir accordé un peu de temps.

Bises

Hors ligne