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 27/05/2010, à 19:48

fabito

#2002 Cannot log in to the MySQL server (Karmic > Lucid)

Bonjour à tous !

Je rencontre actuellement un problème d'accès à mes bases de données en local et je n'arrive pas à le résoudre. J'espère que vous pourrez m'aider big_smile. Ci-dessous, vous trouverez quelques infos sur mon problème. Si besoin d'autres informations je suis à votre disposition smile.

D'avance merci,
Fabien

Alors, j'ai un site en local. Quand je vais dessus ça m'indique :

Error establishing a database connection

Si j'essaie de me connecter à phpmyadmin j'ai :

#2002 Cannot log in to the MySQL server

+

Connection for controluser as defined in your configuration failed

Si je fais

sudo /etc/init.d/mysql status

dans le terminal j'obtiens :

Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql status Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the status(8) utility, e.g. status mysql mysql respawn/post-start, (post-start) process 1012

J'ai rechargé la configuration, j'ai désintaller / réinstaller (sans faire de purge car j'aimerai bien conserver mes BDD...) mais rien n'y fait !

Pour information, j'ai remarqué que je n'avais pas de fichier

/var/run/mysqld/mysqld.sock

(fichier créé par mysql au démarrage), j'en ai créé un vide (vu ça sur un forum) mais ça à pas l'air de corriger le problème...

/etc/init.d/mysql start

me renvoie :

Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql start Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, e.g. start mysql

.

status mysql

me renvoie :

mysql respawn/post-start, (post-start) process 980

Dans

/var/log/mysql/error.log

j'ai :

100527 19:13:31 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
100527 19:13:31 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100527 19:13:31  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.

Pour info, j'ai fait un

mysql_upgrade

et il me retourne :

Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed

Si je fais :

service mysql start

il me retourne :

start: Rejected send message, 1 matched rules; type="method_call",
sender=":1.67" (uid=1000 pid=17276 comm="start)
interface="com.ubuntu.Upstart0_6.Job" member="Start" error
name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0
pid=1 comm="/sbin/init"))
sudo locate plugin.frm

me retourne :

/home/fabien/Documents/WWW/mysql/mysql/plugin.frm
sudo locate ibdata1

me retourne :

/home/fabien/Documents/WWW/mysql/ibdata1

Les sudo locate m'ont l'air normaux...

Dernière modification par fabito (Le 27/05/2010, à 19:48)

Hors ligne