TuxNuX
19 sept. 2009 à 10:20
bon je sais pas du tout comment fonctionne mysql avec windows mais bon devrait aider quand meme :)
root@raclo94 Téléchargement]#/etc/init.d/mysqld stop
[root@raclo94 Téléchargement]# mysqld --skip-grant-tables --skip-networking &
[root@raclo94 Téléchargement]# mysql -p -u root
Enter password: tapez juste entrée
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.34 Mandriva Linux - MySQL Standard Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql
Database changed
mysql> UPDATE user SET password=PASSWORD('mot de pass') WHERE user="root";
Query OK, 0 rows affected (0.00 sec)
Rows matched: 0 Changed: 0 Warnings: 0
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'même mot de pass que ci-dessus'
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
[root@raclo94 Téléchargement]# /etc/init.d/mysqld stop
Shutting down MySQL: ... [ OK ]
[root@raclo94 Téléchargement]# /etc/init.d/mysqld start
Starting MySQL: . [ OK ]
[root@raclo94 Téléchargement]# mysql -p -u root
Enter password: votre pass
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.1.34 Mandriva Linux - MySQL Standard Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
et voila :)