From 598631efc3486d6c7de29753e084341734b519c4 Mon Sep 17 00:00:00 2001 From: vlaborie Date: Tue, 2 Oct 2018 16:39:15 +0200 Subject: [PATCH] Fix --- HowtoMySQL.md | 50 +++++--------------------------------------------- 1 file changed, 5 insertions(+), 45 deletions(-) diff --git a/HowtoMySQL.md b/HowtoMySQL.md index 8de7e976..f34c5105 100644 --- a/HowtoMySQL.md +++ b/HowtoMySQL.md @@ -1369,9 +1369,12 @@ On préfère passer la commande « shutdown » en interne : > **Note** : a priori cela revient à envoyer un signal SIGTERM (kill -15) au process mysqld -Mettre en place le script d'init suivant dans `/etc/init.d/mysqld_instances` : +### Nettoyage -~~~ +Si le *mysqld* principal n'est pas utilisé, on désactivera le script d'init.d /etc/init.d/mysql (en ajoutant `exit 0` +au début du script) et on pourra se créer un script `/etc/init.d/mysql-instance` du type : + +~~~{.bash} #!/bin/sh # ### BEGIN INIT INFO @@ -1416,49 +1419,6 @@ esac exit 0 ~~~ -### Nettoyage - -Si le *mysqld* principal n'est pas utilisé, on désactivera le script d'init.d /etc/init.d/mysql (en ajoutant `exit 0` -au début du script) et on pourra se créer un script `/etc/init.d/mysql-instance` du type : - -~~~{.bash} -#!/bin/sh -# -### BEGIN INIT INFO -# Provides: mysql-instance -# Required-Start: $remote_fs $syslog -# Required-Stop: $remote_fs $syslog -# Should-Start: $network $time -# Should-Stop: $network $time -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start and stop the mysql database server daemon -# Description: Controls the main MySQL database server daemon "mysqld" -# and its wrapper script "mysqld_safe". -### END INIT INFO -# -set -e -set -u - -case "$1" in - start) - mysqld_multi start - ;; - stop) - mysqld_multi stop - ;; - restart) - mysqld_multi stop - mysqld_multi start - ;; - *) - echo "Usage: $0 {start|stop}" - exit 1 -esac - -exit 0 -~~~ - ### Administration Pour voir le statut de l'instance n°1, logiquement nommée mysqld1 (GNR=1) et tournant sur le port 3307 :