MySQL 루트비번 잊었을때

사소한 것이지만 참고로.

# killall mysqld

# safe_mysqld –skip-grant &

# mysql

mysql>UPDATE user SET password=PASSWORD(‘newpasswd’) where
user=’root’;

mysql> FLUSH PRIVILEGES