Comment réinitialiser le mot de passe root dans MySQL ?
- /etc/init.d/mysql stop
- /usr/bin/mysqld_safe –skip-grant-tables &
- mysql -h localhost
- use mysql
- update user set password = password(‘MON_MOT_DE_PASSE’) where user = ‘root’ and host=’localhost’;
- quit
- Reboot
et voila!
Source : http://www.digitalpeer.com/id/lost