root/documentation/perdu.mot.de.passe.mysql.txt

Revision 30, 406 bytes (checked in by jean, 7 months ago)

perdu le mot de passe mysql, pas de problèmes

Line 
1 source : http://www.mydigitallife.info/2006/06/06/change-and-reset-mysql-root-password/
2
3
4 Perdu le mot de passe mysql
5 ***************************
6
7
8 pour debian 4 avec mysql 5:
9 /etc/init.d/mysql stop
10 mysqld_safe –-skip-grant-tables  &
11 mysql -u root mysql
12 UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’;
13 FLUSH PRIVILEGES;
14 /etc/init.d/mysql stop
15 /etc/init.d/mysql start
Note: See TracBrowser for help on using the browser.