#1 Le 27/11/2012, à 17:31
- bzh atav
Passage en 12.04 > Can't connect to local MySQL server through socket
Après MAJ d'Ubuntu (j'étais en 10.10), je n'arrive plus à lancer mysql.
Lorsque je fais sudo service mysql start via le terminal, il bloque.
Sur mes pages web j'ai l'erreur suivante :
Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 111
Problème de socket apparemment (ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock') Le fichier est absent.
J'ai bien un dossier mysqld mais rien dedans.
J'ai suivi différentes pistes mais je bloque depuis ce matin. Help ! Je m'en remets à votre savoir.
ps : tout marchait bien avant cette put..... de MAJ Ubuntu...
J'ai bien changé mes localhost en 127.0.0.1 et les login/MDP sont bons a priori.
Dernière modification par bzh atav (Le 27/11/2012, à 17:32)
Hors ligne
#2 Le 27/11/2012, à 18:00
- bzh atav
Re : Passage en 12.04 > Can't connect to local MySQL server through socket
Je teste :
sudo apt-get remove --purge mysql-server
sudo apt-get autoremove
sudo apt-get install mysql-server
Ca décoince pas...
Dans var/log/mysql/error.log j'ai :
121127 17:57:46 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
121127 17:57:46 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
121127 17:57:46 InnoDB: Initializing buffer pool, size = 8.0M
121127 17:57:46 InnoDB: Completed initialization of buffer pool
121127 17:57:46 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
Des idées ?
Comment on fait "run mysql_upgrade" ?
Hors ligne
#3 Le 27/11/2012, à 20:36
- bzh atav
Re : Passage en 12.04 > Can't connect to local MySQL server through socket
Le serpent se mord la queue :
j'ai trouvé le fichier mysql_upgrade dans /usr/bin mais quand je le lance, j'obtiens :
Looking for 'mysql' as: /usr/bin/mysql
Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
/usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) when trying to connect
FATAL ERROR: Upgrade failed
Du coup, l'erreur est identique et je suis toujours bloqué. HELP !
Hors ligne