Recover MySQL Root Password
- Stop mysqld process:
/etc/init.d/mysql stop - Start mysqld with –skip-grant-tables:
mysqld --skip-grant-tables - Open another shell, login as root:
mysql -uroot - Switch to the “mysql” Database:
use mysql; - Change root password in mysql console:
UPDATE user SET password=PASSWORD('newpassword') WHERE user='root'; - leave mysql console:
quit; - Restart mysql daemon:
/etc/init.d/mysql restart
Have fun!
Das wird dich vielleicht auch interessieren:
No comments yet





