En ce moment :Genshin Impact, Valhalla, Breath of the wild, Animal Crossing, GTA 5, Red dead 2
PCPS5Xbox SeriesSwitch 2
Liste des sujets
Problème mysql / phpmyadmin
Wolveryne2
Niveau 7
04 juin 2011 à 03:19:58
Donc voilà le truc, hier j'ai installé Mysql, Phpmyadmin, php5 et tout ce qui va avec. Je commence mon site (en local) et tout marche. Aujourd'hui impossible d'y accéder.
Impossible aussi d'accéder à phpmyadmin :
2002 Connexion au serveur MySQL non permise
La connexion au controluser tel que défini dans votre configuration a échoué.
Et pareil pour Mysql administrator : Could not connect to host 'localhost'. MySQL Error Nr. 2002 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Quelqu'un a déjà eu ce problème ? Je n'ai pourtant touché à rien d'autre depuis hier.
godrik
Niveau 30
04 juin 2011 à 04:57:32
est ce que les daemons sont correctement demarres ?
Wolveryne2
Niveau 7
04 juin 2011 à 11:11:52
Je sais pas si je me trompe ou pas mais en faisant "service mysql start" j'ai : start: Job is already running: mysql
Donc logiquement il est en route, et pourtant rien ne marche.
aodren
Niveau 10
05 juin 2011 à 06:55:38
essai "service mysql reload" ou restart
après as-tu touché un réglage ?
Wolveryne2
Niveau 7
05 juin 2011 à 15:07:31
service mysql reload reload: Inactif
service mysql restart mysql start/running
Mais en essayant de me connecter à phpmyadmin ou à mysql ça ne marche toujours pas et j'ai toujours les memes erreurs.
Wolveryne2
Niveau 7
06 juin 2011 à 13:31:25
deepblue
Niveau 16
06 juin 2011 à 16:24:01
Minute papillon...
Relances mysql et fait un
tail -n 20 /var/log/syslog
et donne le résultat
Wolveryne2
Niveau 7
06 juin 2011 à 16:59:57
Voilà ce que j'ai :
Jun 6 16:52:46 WOLVY kernel: [14739.831092] type=1400 audit(1307371966.011:505): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18709 comm="apparmor_parser" Jun 6 16:52:46 WOLVY init: mysql main process (18713) terminated with status 1 Jun 6 16:52:46 WOLVY init: mysql main process ended, respawning Jun 6 16:53:16 WOLVY init: mysql post-start process (18714) terminated with status 1 Jun 6 16:53:16 WOLVY kernel: [14770.082625] type=1400 audit(1307371996.263:506): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18798 comm="apparmor_parser" Jun 6 16:53:16 WOLVY init: mysql main process (18802) terminated with status 1 Jun 6 16:53:16 WOLVY init: mysql main process ended, respawning Jun 6 16:53:46 WOLVY init: mysql post-start process (18803) terminated with status 1 Jun 6 16:53:46 WOLVY kernel: [14800.325936] type=1400 audit(1307372026.507:507): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18887 comm="apparmor_parser" Jun 6 16:53:46 WOLVY init: mysql main process (18891) terminated with status 1 Jun 6 16:53:46 WOLVY init: mysql main process ended, respawning Jun 6 16:54:16 WOLVY init: mysql post-start process (18892) terminated with status 1 Jun 6 16:54:16 WOLVY kernel: [14830.570299] type=1400 audit(1307372056.751:508): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=18977 comm="apparmor_parser" Jun 6 16:54:16 WOLVY init: mysql main process (18981) terminated with status 1 Jun 6 16:54:16 WOLVY init: mysql main process ended, respawning Jun 6 16:54:46 WOLVY init: mysql post-start process (18982) terminated with status 1 Jun 6 16:54:46 WOLVY kernel: [14860.790120] type=1400 audit(1307372086.972:509): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=19089 comm="apparmor_parser" Jun 6 16:54:47 WOLVY init: mysql main process (19093) terminated with status 1 Jun 6 16:54:47 WOLVY init: mysql main process ended, respawning Jun 6 16:55:17 WOLVY init: mysql post-start process (19094) terminated with status 1
deepblue
Niveau 16
06 juin 2011 à 21:32:26
$ mysql -u"ton login" -p"ton mot de passe" ça donne quoi ?
Wolveryne2
Niveau 7
07 juin 2011 à 00:47:24
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
deepblue
Niveau 16
07 juin 2011 à 09:10:36
tu peux me donner le contenu de /etc/mysql/my.cnf stp ?
Wolveryne2
Niveau 7
07 juin 2011 à 12:07:39
Le voilà :
#
The MySQL database server configuration file.
#
You can copy this to one of:
- "/etc/mysql/my.cnf" to set global options,
- "~/.my.cnf" to set user-specific options.
One can use all long options that the program supports.
Run program with --help to get a list of available options and with
--print-defaults to see which it would actually understand and use.
no-auto-rehash # faster start of mysql but no tab completition
[isamchk] key_buffer = 16M
#
IMPORTANT: Additional settings that can override those from this file!
The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
Wolveryne2
Niveau 7
09 juin 2011 à 19:25:01
Wolveryne2
Niveau 7
10 juin 2011 à 02:15:42
J'ai finalement fait un "sudo dpkg-reconfigure mysql-server-5.1" j'ai pu redéfinir le mdp et ça remarche. Par contre je comprends pas pourquoi le mdp aurait changé d'un jour à l'autre alors que j'ai rien touché.