Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[WHEEZY] [JESSIE] Je n'arrive pas à redémarrer mysql

9 réponses
Avatar
Ph. Gras
Bonjour,

de passage =E0 Jessie, je n'arrive pas =E0 red=E9marrer mysql.

D'autre part, j'ai un sacr=E9 bordel dans mon serveur :
# dpkg --audit
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Les paquets suivants ont =E9t=E9 d=E9paquet=E9s mais ne sont pas =
configur=E9s. Ils
doivent =EAtre configur=E9s en utilisant dpkg --configure ou l'option =
configure
du menu de dselect pour pouvoir fonctionner :
apache2 Apache HTTP Server
apache2-bin Apache HTTP Server (modules and other binary =
files)
apache2-data Apache HTTP Server (common files)
apache2-mpm-prefork transitional prefork MPM package for apache2
apache2-utils Apache HTTP Server (utility programs for web =
servers)
apache2.2-bin Transitional package for apache2-bin
apache2.2-common Transitional package for apache2
cpp GNU C preprocessor (cpp)
cpp-4.9 GNU C preprocessor
cron process scheduling daemon
curl command line tool for transferring data with URL =
syntax
g++ GNU C++ compiler
g++-4.9 GNU C++ compiler
gcc GNU C compiler
gcc-4.9 GNU C compiler
init-system-helpers helper tools for all init systems
libalgorithm-diff-xs-perl module to find differences between files (XS =
acceler
libapache2-mod-php5 server-side, HTML-embedded scripting language =
(Apache 2 m
libapparmor1:amd64 changehat AppArmor library
libaprutil1:amd64 Apache Portable Runtime Utility Library
libaprutil1-dbd-sqlite3:amd64 Apache Portable Runtime Utility Library - =
SQLite3 Driv
libaprutil1-ldap:amd64 Apache Portable Runtime Utility Library - LDAP =
Driver
libapt-pkg-perl Perl interface to libapt-pkg
libasan1:amd64 AddressSanitizer -- a fast memory error detector
libatomic1:amd64 support library providing __atomic built-in =
functions
libcilkrts5:amd64 Intel Cilk Plus language extensions (runtime)
libcloog-isl4:amd64 Chunky Loop Generator (runtime library)
libcurl3:amd64 easy-to-use client-side URL transfer library =
(OpenSSL fla
libdbd-mysql-perl Perl5 database interface to the MySQL database
libdbi-perl Perl Database Interface (DBI)
libffi6:amd64 Foreign Function Interface library runtime
libfftw3-double3:amd64 Library for computing Fast Fourier Transforms - =
Double pr
libfile-fcntllock-perl Perl module for file locking with fcntl(2)
libgcc-4.9-dev:amd64 GCC support library (development files)
libgd3:amd64 GD Graphics Library
libgeo-ip-perl Perl interface to GeoIP library
libgfortran3:amd64 Runtime library for GNU Fortran applications
libgnutls-deb0-28:amd64 GNU TLS library - main runtime library
libgomp1:amd64 GCC OpenMP (GOMP) support library
libhogweed2:amd64 low level cryptographic library (public-key =
cryptos)
libisl10:amd64 manipulating sets and relations of integer points =
bounded
libitm1:amd64 GNU Transactional Memory Library
libjpeg62-turbo:amd64 libjpeg-turbo JPEG runtime library
libjson-c2:amd64 JSON manipulation library - shared library
libldap-2.4-2:amd64 OpenLDAP libraries
liblocale-gettext-perl module using libc functions for =
internationalization in
liblsan0:amd64 LeakSanitizer -- a memory leak detector (runtime)
libmagickcore-6.q16-2:amd64 low-level image manipulation library -- =
quantum depth Q1
libmagickwand-6.q16-2:amd64 image manipulation library
libmemcached11:amd64 C and C++ client library to the memcached server
libmemcachedutil2:amd64 library implementing connection pooling for =
libmemcached
libmpc3:amd64 multiple precision complex floating-point library
libnettle4:amd64 low level cryptographic library (symmetric and =
one-way cr
libp11-kit0:amd64 Library for loading and coordinating access to =
PKCS#11 mo
libquadmath0:amd64 GCC Quad-Precision Math Library
librtmp1:amd64 toolkit for RTMP streams (shared library)
libsasl2-2:amd64 Cyrus SASL - authentication abstraction library
libsasl2-modules-db:amd64 Cyrus SASL - pluggable authentication modules =
(DB)
libssh2-1:amd64 SSH2 client-side library
libstdc++-4.9-dev:amd64 GNU Standard C++ Library v3 (development files)
libtasn1-6:amd64 Manage ASN.1 structures (runtime)
libterm-readkey-perl perl module for simple terminal control
libtext-charwidth-perl get display widths of characters on the terminal
libtext-iconv-perl converts between character sets in Perl
libtiff5:amd64 Tag Image File Format (TIFF) library
libtsan0:amd64 ThreadSanitizer -- a Valgrind-based detector of =
data race
libubsan0:amd64 UBSan -- undefined behaviour sanitizer (runtime)
libvpx1:amd64 VP8 and VP9 video codec (shared library)
libyaml-syck-perl Perl module providing a fast, lightweight YAML =
loader and
mailman Powerful, web-based mailing list manager
perl Larry Wall's Practical Extraction and Report =
Language
perl-modules Core Perl modules
php5-cli command-line interpreter for the php5 scripting =
language
php5-common Common files for packages built from the php5 =
source
php5-curl CURL module for php5
php5-fpm server-side, HTML-embedded scripting language =
(FPM-CGI bi
php5-gd GD module for php5
php5-imagick Provides a wrapper to the ImageMagick library
php5-json JSON module for php5
php5-mcrypt MCrypt module for php5
php5-memcache memcache extension module for PHP5
php5-memcached memcached extension module for PHP5, uses =
libmemcached
php5-mysql MySQL module for php5
php5-xcache Fast, stable PHP opcode cacher
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

# service mysql stop
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[ ok ] Stopping MySQL database server: mysqld.

# service mysql start
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[....] Starting MySQL database server: mysqldPas de r=E9pertoire, =
connexion avec HOME=3D/
[FAIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!

# apt-get remove --purge mysql-server mysql-client
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Lecture des listes de paquets... Fait
Construction de l'arbre des d=E9pendances =20
Lecture des informations d'=E9tat... Fait
Vous pouvez lancer =AB apt-get -f install =BB pour corriger ces =
probl=E8mes :
Les paquets suivants contiennent des d=E9pendances non satisfaites :
lsof : D=E9pend: libperl4-corelibs-perl mais ne sera pas install=E9 ou
perl (< 5.12.3-7) mais 5.20.2-3+deb8u6 devra =EAtre =
install=E9
mailman : D=E9pend: python:any (>=3D 2.6.6-7~)
D=E9pend: python-dnspython mais ne sera pas install=E9
E: D=E9pendances non satisfaites. Essayez =AB apt-get -f install =BB =
sans paquet
(ou indiquez une solution).
root@ks3294494:~# apt-get autoremove
Lecture des listes de paquets... Fait
Construction de l'arbre des d=E9pendances =20
Lecture des informations d'=E9tat... Fait
Vous pouvez lancer =AB apt-get -f install =BB pour corriger ces =
probl=E8mes.
Les paquets suivants contiennent des d=E9pendances non satisfaites :
lsof : D=E9pend: libperl4-corelibs-perl mais il n'est pas install=E9 ou
perl (< 5.12.3-7) mais 5.20.2-3+deb8u6 est install=E9
mailman : D=E9pend: python:any (>=3D 2.6.6-7~)
D=E9pend: python-dnspython mais il n'est pas install=E9
E: D=E9pendances manquantes. Essayez d'utiliser l'option -f.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Si j'extrapole, je ne suis plus dans Wheezy, pas encore dans Jessie, =
avec un sacr=E9 bazar
dans ma machine=85

J'aimerais juste red=E9marrer mysql avant ce soir pour le moment.

Merci pour votre attention,

Ph. Gras=

9 réponses

Avatar
Jean-Michel OLTRA
Bonjour,
Le dimanche 14 août 2016, Ph. Gras a écrit...
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 ou bien
/lib/systemd/system/mysql.service si tu es sous systemd, si tu veux
répliquer les options de démarrage du système.
Perso, je mettrais d'abord à jour correctement ma distribution avant de
me polariser sur mysql, qui fait peut-être partie du tout.
--
jm
Avatar
Ph. Gras
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 :
# 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
-rw-r--r-- 1 root root 141 déc. 28 2015
-rw-r--r-- 1 root root 176 déc. 28 2015
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
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
Avatar
Jean-Michel OLTRA
Bonjour,
Le dimanche 14 août 2016, Ph. Gras a écrit...
J'ai bien systemd, mais mysql n'est pas dedans :

Fais un `dpkg -l|grep mysql-server`
Moi, j'ai mysql-server-5.6
Ce qui te donnera le nom des paquets installés mysql-server*, mais
également le statut desdits paquets (rc ??)
Ensuite `dpkg -L <le-nom-du-paquet-server>`
Perso, j'ai une ligne :
/lib/systemd/system/mysql.service
Sinon, voir /etc/init.d/mysql
Un truc comme `mysqld --skip-grant-tables -u root &` devrait fonctionner, je
pense (pour déboguer, le -u root). Il y a également `mysqld_safe` qui va
lancer le serveur (ou du moins tenter de…)
Tu auras les erreurs dans /var/log/syslog, normalement.
--
jm
Avatar
Pierre Malard
--Apple-Mail=_DF2F79DA-B7BA-45F8-86A4-79AF665ED323
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
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
-rw-r--r-- 1 root root 141 déc. 28 2015
-rw-r--r-- 1 root root 176 déc. 28 2015
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
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ée s 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 <--
--Apple-Mail=_DF2F79DA-B7BA-45F8-86A4-79AF665ED323
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.30
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCgAGBQJXsGnBAAoJEP6Ulh7mnfwYFYAP/0EL1eZnLOEPW4qy68Ob3CYQ
3ZcSBsjhHFaLU6S1Pr9N8DqhCW47cu8AlTzTsuHS7AQpvSZsABHpTHMpjDaIZS8d
cd5KArywnWSZ/DTw2ZHL8HhtFrWkOTX8UiKCy03qY0fbLNq8DYrm42c8lkCGz14T
+luexqsxAsbS8qFEJM0oQudcPU0QzM1Z0uHtcttkXM0uCOlOkaIJGC+sGsVL+EI3
ZIP+jSLJd2V3Yej1cr/DxcIBwakG20lpU9eKJoFsBGbI7+5i63NYoPO9zkRZZvxd
3lMP3eahbmlxe7BGXzt/RYfCdmKHZ8i6odej67EZPohb8agmYaF+AEiHDIXfOhc4
RdHDVC305NAG7ogrIEW2IhJ011udfHkUZeeaBz4v8yeCHAfsaor+yvmw2s/qCmRH
aRnxX31MOHopOLUMQ84G0shwLoV00o50UTThfapwyMzzeRo9+qoJU/0t70Fs3D/4
VBsNIkvgjAeyo2DBz6bh6EVddjfduzr25REpfztTIIxsjB9LQjTCyANLf67nIMpH
oZ/5NfvTTgaRUPJMxwryjbwZ4RAx7v3kKeCIhtTBvbMVtulnEopowdoxwHk/bMCN
dtku4Ie08aCjthLIRJ1E+0HB7ho1wqkM+yE7p7DFGDrVmIWYj4wM97rdZiLCrF7e
61QJyge0cG0jlCtnZLuB
=Wcqk
-----END PGP SIGNATURE-----
--Apple-Mail=_DF2F79DA-B7BA-45F8-86A4-79AF665ED323--
Avatar
Ph. Gras
Oui,
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…

Y en a un :-)
Ph. Gras
Avatar
Jacques BRIQUET
------=_Part_5527_786522286.1471188717116
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Bonjour,
/etc/init.d/mysql
 
[code]
:~# systemctl status mysql.service
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; ve ndor 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 --p lugin-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_saf e Can't log to error log and syslog at the same time.  Remove all --lo g-error con
août 14 09:51:36 alpha30 mysqld_safe[2336]: 160814 09:51:36 mysqld_saf e Logging to '/var/log/mysql/error.log'.
août 14 09:51:36 alpha30 mysqld_safe[2336]: 160814 09:51:36 mysqld_saf e Starting mysqld daemon with databases from /var/lib/mysql
août 14 09:51:36 alpha30 systemd[1]: Started MySQL Community Server.
:~#
[/code]
JB
 
 
 
 
 
Message du 14/08/16 15:12
De : "Pierre Malard"
A : " French"
Copie à : "Ph. Gras"
Objet : Re: [WHEEZY] [JESSIE] Je n'arrive pas à redémarrer mysq l
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, co nnexion 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 ……… » fonction ne, 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 ce
-rw-r--r-- 1 root root 141 déc. 28 2015
-rw-r--r-- 1 root root 176 déc. 28 2015
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 -> /d ev/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
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/nu ll
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 av ant de
me polariser sur mysql, qui fait peut-être partie du tout.

C'est certainement exact, mais il faut néanmoins que je fasse tour ner mes sites
en attendant de remettre les choses à plat.
J'ai loué un autre serveur sur lequel je vais mettre ma base de do nnées pour le
moment, mais le problème reste entier. Je ne peux plus mettre ma d istro à 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) ]

------=_Part_5527_786522286.1471188717116
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<p>Bonjour,</p>
<p>/etc/init.d/mysql</p>
<p> </p>
<p>[code]</p>
<p>:~# systemctl status mysql.service
● mysql.serv ice - MySQL Community Server
   Loaded: loaded (/lib/systemd /system/mysql.service; enabled; vendor preset: enabled)
   A ctive: 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
< br />août 14 09:51:35 alpha30 systemd[1]: Starting MySQL Community Ser ver...
août 14 09:51:36 alpha30 mysqld_safe[2336]: 160814 09:51:3 6 mysqld_safe Can't log to error log and syslog at the same time.  Rem ove 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_saf e Starting mysqld daemon with databases from /var/lib/mysql
août 14 09:51:36 alpha30 systemd[1]: Started MySQL Community Server.
lpha30:~#
[/code]</p>
<p>JB</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<blockquote style="padding-left: 5px; margin-left: 5px; border-left: #ff0 000 2px solid;">&gt; Message du 14/08/16 15:12
&gt; De : "Pierre Malar d" &lt;&gt;
&gt; A : " ian.org French" &lt;&gt;
&gt; Copie à : "Ph. Gras" &lt;&gt;
&gt; Objet : Re: [ WHEEZY] [JESSIE] Je n'arrive pas à redémarrer mysql
&gt; <br />&gt;
&gt; &gt; Le 14 août 2016 à 14:22, Ph. Gras &lt;ph. &gt; a écrit :
&gt; &gt;
&gt; &gt; Hello !
&gt; &gt;&gt;
&gt; &gt;&gt;&gt; J'aimerais juste redémar rer mysql avant ce soir pour le moment.
&gt; &gt;&gt;
&gt; &gt;& gt; Lance mysqld directement, et vois ce que ça donne. man mysqld et l ire le
&gt; &gt;&gt; fichier de démarrage de mysqld /etc/init.d/m ysql
&gt; &gt;
&gt; &gt; # service mysql restart
&gt; &gt; [ ok ] Stopping MySQL database server: mysqld.
&gt; &gt; [....] Starti ng MySQL database server: mysqldPas de répertoire, connexion avec HOME =/
&gt; &gt; [FAIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
&gt; &gt;
&gt; &gt;&gt; /lib/systemd/system/mysql. service si tu es sous systemd, si tu veux
&gt; &gt;&gt; répliquer les options de démarrage du système.
&gt; &gt; J'ai bien sy stemd, mais mysql n'est pas dedans :
&gt;
&gt; Comme le « s ervice mysql ……… » fonctionne, c’est q u’il y a au moins un script initd à la base, non ?
&gt; R egarde dans /etc/init.d, il y a certainement un script mysql…
&gt;
&gt; &gt;
&gt; &gt; # ls -al /lib/systemd/system
&gt; &gt; total 100
&gt; &gt; drwxr-xr-x 6 root root 4096 août 13 23: 19 .
&gt; &gt; drwxr-xr-x 4 root root 4096 août 13 23:09 ..
&gt; &gt; -rw-r--r-- 1 root root 155 avril 15 2013 acpid.service
&gt; &gt; -rw-r--r-- 1 root root 115 avril 15 2013 acpid.socket
&gt; &gt; d rwxr-xr-x 2 root root 4096 mai 3 2013 basic.target.wants
&gt; &gt; -rw -r--r-- 1 root root 251 juin 11 2015 cron.service
&gt; &gt; -rw-r--r-- 1 root root 353 févr. 9 2015 dbus.service
&gt; &gt; -rw-r--r-- 1 root root 106 févr. 9 2015 dbus.socket
&gt; &gt; drwxr-xr-x 2 ro ot root 4096 août 22 2015 dbus.target.wants
&gt; &gt; -rw-r--r-- 1 root root 481 déc. 28 2015
&gt; &g t; -rw-r--r-- 1 root root 141 déc. 28 2015 < br />&gt; &gt; -rw-r--r-- 1 root root 176 déc. 28 2015 mdadm-last-reso
&gt; &gt; lrwxrwxrwx 1 root root 9 déc. 28 2015 mdadm.s ervice -&gt; /dev/null
&gt; &gt; lrwxrwxrwx 1 root root 9 déc. 28 2015 mdadm-waitidle.service -&gt; /dev/null
&gt; &gt; -rw-r--r-- 1 ro ot root 388 déc. 28 2015 mdmonitor.service
&gt; &gt; -rw-r--r-- 1 root root 1034 déc. 28 2015
&gt; &gt; drwxr-xr-x 2 root root 4096 août 22 2015 multi-user.target.wants
&gt; &gt; - rw-r--r-- 1 root root 418 sept. 19 2014 nginx.service
&gt; &gt; -rw-r- -r-- 1 root root 329 juil. 26 10:09 php5-fpm.service
&gt; &gt; -rw-r-- r-- 1 root root 188 févr. 24 2014 rsync.service
&gt; &gt; -rw-r-- r-- 1 root root 190 oct. 7 2014 rsyslog.service
&gt; &gt; lrwxrwxrwx 1 root root 9 sept. 3 2015 screen-cleanup.service -&gt; /dev/null
&gt; &gt; drwxr-xr-x 2 root root 4096 août 22 2015 sockets.target.wants<br />&gt; &gt; -rw-r--r-- 1 root root 164 avril 29 2013 udev-control.socket<br />&gt; &gt; -rw-r--r-- 1 root root 177 avril 29 2013 udev-kernel.socket<br />&gt; &gt; -rw-r--r-- 1 root root 384 avril 29 2013 udev.service
&gt ; &gt; -rw-r--r-- 1 root root 752 avril 29 2013 udev-settle.service
&g t; &gt; -rw-r--r-- 1 root root 291 avril 29 2013 udev-trigger.service
&gt; &gt;
&gt; &gt;&gt;
&gt; &gt;&gt; Perso, je mettrais d'abor d à jour correctement ma distribution avant de
&gt; &gt;&gt; me p olariser sur mysql, qui fait peut-être partie du tout.
&gt; &gt;
&gt; &gt; C'est certainement exact, mais il faut néanmoins que j e fasse tourner mes sites
&gt; &gt; en attendant de remettre les chose s à plat.
&gt; &gt;
&gt; &gt; J'ai loué un autre serve ur sur lequel je vais mettre ma base de données pour le
&gt; &gt; moment, mais le problème reste entier. Je ne peux plus mettre ma dist ro à jour.
&gt; &gt;
&gt; &gt; Merci pour ton aide,
&g t; &gt;
&gt; &gt; Ph. Gras
&gt; &gt;
&gt;
&gt; --<br />&gt; Pierre Malard
&gt;
&gt; « Je n'ai jamais sépar é la République des idées de justice sociale,
&gt; sans laquelle elle n'est qu'un mot »
&gt; Jean Jaures - 1887
&gt ; | _,,,---,,_
&gt; /,`.-'`' -. ;-;;,_
&gt; |,4- ) )-,_. , ( `' -'
&gt; '---''(_/--' `-'_) πr
&gt;
&gt; perl -e '$_ =q#: 3| 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-. ;-;;,_: |,A- ) )-,_. , ( `'"'"' -'"'"': '"'"'-3'"'"'2(_/--'"'"' `-'"'"'_): 24πr::#;y#:#n#;s#(D)(d+ )#$1x$2#ge;print'
&gt; - --&gt; Ce message n’engage que son au teur &lt;--
&gt;
&gt;
&gt;
&gt; [ signature.asc (0.9 Ko) ]
------=_Part_5527_786522286.1471188717116--
Avatar
Ph. Gras
Bonsoir,
Bonjour,
/etc/init.d/mysql
[code]
:~# 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.
:~#
[/code]

# /etc/init.d/mysql
Usage: /etc/init.d/mysql start|stop|restart|reload|force-reload|status
# /etc/init.d/mysql start
[....] Starting MySQL database server: mysqldPas de répertoire, connexion avec HOME=/
[FAIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
# /etc/init.d/mysql force-reload
[....] Reloading MySQL database server: mysqld/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
# /etc/init.d/mysql status
[info] MySQL is stopped..
:-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-(
Ph. Gras=
Avatar
Etilem
Le Sun, 14 Aug 2016 18:12:03 +0200,
"Ph. Gras" a écrit :
# /etc/init.d/mysql start
[....] Starting MySQL database server: mysqldPas de répertoire,
connexion avec HOME=/
[FAIL. . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!

En démarrant, le "démon" mysqld ne trouve rien dans la variable s hell
HOME, or si tu fais un :
less /etc/init.d/mysql (le script de démarrage)
sous Jessie, on peut lire cette ligne :
export HOME=/etc/mysql/
donc il y aurait un problème avec ton installation de mysql ?
# /etc/init.d/mysql force-reload [....] Reloading MySQL database
server: mysqld/usr/bin/mysqladmin: connect to server at 'localhost'
failed error: 'Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and
that the socket: '/var/run/mysqld/mysqld.sock' exists!
# /etc/init.d/mysql status [info] MySQL is stopped..
:-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( : -( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-( :-(
Ph. Gras

pas la peine de s'acharner sur /etc/init.d/mysql si le problème vient
de là.
--
Etilem
Avatar
Ph. Gras
Ben finalement…
sous Jessie, on peut lire cette ligne :
export HOME=/etc/mysql/
donc il y aurait un problème avec ton installation de mysql ?

Oui. Je l'ai aussi, mais ça n'avance pas mon affaire.
pas la peine de s'acharner sur /etc/init.d/mysql si le problème vient
de là.

Non, le problème ne vient pas de là. Il a ça pour conséquence, ce qui
est différent. Remettre un tour de manivelle permet de tester si ce que
j'ai modifié a réussi.
Grâce à vous, je me suis quand même aperçu que j'avais conservé le
fichier de ma guerre de quatorze :
https://lists.debian.org/debian-user-french/2014/12/msg00246.html
========================= ========================= ====
# cp my.cnf.dpkg-dist /etc/mysql/my.cnf
# service mysql start
[....] Starting MySQL database server: mysqldPas de répertoire, connexion avec HOME=/
[ .k
[info] Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
# service mysql status
[info] /usr/bin/mysqladmin Ver 8.42 Distrib 5.6.21, for debian-linux-gnu on x86_64
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.6.21-1~dotdeb.1
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 16 sec
Threads: 12 Questions: 783 Slow queries: 0 Opens: 888 Flush tables: 1 Open tables: 221 Queries per second avg: 48.937.
========================= ========================= ====
Je reste avec ma vieille daube de chez Dotdeb, mais au moins cela
fonctionne :-P Va savoir pourquoi ?
Merci à tous,
Ph. Gras
PS. Conclusion provisoire : gardez précieusement vos vieux bouts de
ficelle qui ne servent plus à rien.=