Bonjour, /etc/init.d/mysql
[code] root@alpha30:~# systemctl status mysql.service ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: active (running) since dim. 2016-08-14 09:51:36 CEST; 7h ago Main PID: 2336 (mysqld_safe) CGroup: /system.slice/mysql.service ├─2336 /bin/sh /usr/bin/mysqld_safe └─2757 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --log-error=/var/log/mysql/error.log --pi août 14 09:51:35 alpha30 systemd[1]: Starting MySQL Community Server... août 14 09:51:36 alpha30 mysqld_safe[2336]: 160814 09:51:36 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error con août 14 09:51:36 alpha30 mysqld_safe[2336]: 160814 09:51:36 mysqld_safe Logging to '/var/log/mysql/error.log'. août 14 09:51:36 alpha30 mysqld_safe[2336]: 160814 09:51:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql août 14 09:51:36 alpha30 systemd[1]: Started MySQL Community Server. root@alpha30:~# [/code] JB > Message du 14/08/16 15:12 > De : "Pierre Malard" > A : "[email protected] French" > Copie à : "Ph. Gras" > Objet : Re: [WHEEZY] [JESSIE] Je n'arrive pas à redémarrer mysql > > > > Le 14 août 2016 à 14:22, Ph. Gras a écrit : > > > > Hello ! > >> > >>> J'aimerais juste redémarrer mysql avant ce soir pour le moment. > >> > >> Lance mysqld directement, et vois ce que ça donne. man mysqld et lire le > >> fichier de démarrage de mysqld /etc/init.d/mysql > > > > # service mysql restart > > [ ok ] Stopping MySQL database server: mysqld. > > [....] Starting MySQL database server: mysqldPas de répertoire, connexion > > avec HOME=/ > > [FAIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . failed! > > > >> /lib/systemd/system/mysql.service si tu es sous systemd, si tu veux > >> répliquer les options de démarrage du système. > > J'ai bien systemd, mais mysql n'est pas dedans : > > Comme le « service mysql ……… » fonctionne, c’est qu’il y a au moins un script > initd à la base, non ? > Regarde dans /etc/init.d, il y a certainement un script mysql… > > > > > # ls -al /lib/systemd/system > > total 100 > > drwxr-xr-x 6 root root 4096 août 13 23:19 . > > drwxr-xr-x 4 root root 4096 août 13 23:09 .. > > -rw-r--r-- 1 root root 155 avril 15 2013 acpid.service > > -rw-r--r-- 1 root root 115 avril 15 2013 acpid.socket > > drwxr-xr-x 2 root root 4096 mai 3 2013 basic.target.wants > > -rw-r--r-- 1 root root 251 juin 11 2015 cron.service > > -rw-r--r-- 1 root root 353 févr. 9 2015 dbus.service > > -rw-r--r-- 1 root root 106 févr. 9 2015 dbus.socket > > drwxr-xr-x 2 root root 4096 août 22 2015 dbus.target.wants > > -rw-r--r-- 1 root root 481 déc. 28 2015 [email protected] > > -rw-r--r-- 1 root root 141 déc. 28 2015 [email protected] > > -rw-r--r-- 1 root root 176 déc. 28 2015 [email protected] > > lrwxrwxrwx 1 root root 9 déc. 28 2015 mdadm.service -> /dev/null > > lrwxrwxrwx 1 root root 9 déc. 28 2015 mdadm-waitidle.service -> /dev/null > > -rw-r--r-- 1 root root 388 déc. 28 2015 mdmonitor.service > > -rw-r--r-- 1 root root 1034 déc. 28 2015 [email protected] > > drwxr-xr-x 2 root root 4096 août 22 2015 multi-user.target.wants > > -rw-r--r-- 1 root root 418 sept. 19 2014 nginx.service > > -rw-r--r-- 1 root root 329 juil. 26 10:09 php5-fpm.service > > -rw-r--r-- 1 root root 188 févr. 24 2014 rsync.service > > -rw-r--r-- 1 root root 190 oct. 7 2014 rsyslog.service > > lrwxrwxrwx 1 root root 9 sept. 3 2015 screen-cleanup.service -> /dev/null > > drwxr-xr-x 2 root root 4096 août 22 2015 sockets.target.wants > > -rw-r--r-- 1 root root 164 avril 29 2013 udev-control.socket > > -rw-r--r-- 1 root root 177 avril 29 2013 udev-kernel.socket > > -rw-r--r-- 1 root root 384 avril 29 2013 udev.service > > -rw-r--r-- 1 root root 752 avril 29 2013 udev-settle.service > > -rw-r--r-- 1 root root 291 avril 29 2013 udev-trigger.service > > > >> > >> Perso, je mettrais d'abord à jour correctement ma distribution avant de > >> me polariser sur mysql, qui fait peut-être partie du tout. > > > > C'est certainement exact, mais il faut néanmoins que je fasse tourner mes > > sites > > en attendant de remettre les choses à plat. > > > > J'ai loué un autre serveur sur lequel je vais mettre ma base de données > > pour le > > moment, mais le problème reste entier. Je ne peux plus mettre ma distro à > > jour. > > > > Merci pour ton aide, > > > > Ph. Gras > > > > -- > Pierre Malard > > « Je n'ai jamais séparé la République des idées de justice sociale, > sans laquelle elle n'est qu'un mot » > Jean Jaures - 1887 > |\ _,,,---,,_ > /,`.-'`' -. ;-;;,_ > |,4- ) )-,_. ,\ ( `'-' > '---''(_/--' `-'\_) πr > > perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-. ;-;;,_: |,A- ) )-,_. ,\ ( > `'"'"'-'"'"': '"'"'-3'"'"'2(_/--'"'"' `-'"'"'\_): > 24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print' > - --> Ce message n’engage que son auteur <-- > > > > [ signature.asc (0.9 Ko) ]

