7/23/2008

forgot mysql root password? don't worry!

如果忘記mysql密碼的話,可用下列方法解決:
# killall mysqld
# mysqld -u root --skip-grant-tables &
myaql (進入mysql)
>use mysql
>UPDATE user SET password=password('new password') where user='root';
>FLUSH PRIVILEGES;
這樣就完成了!
作業系統:ubuntu 7.04 (not suitable for every os)

沒有留言: