root@alex:~# mysqld_safe --skip-grant-tables --skip-networking & \\只允许本地登录mysql
root@alex:~#...
[root@localhost html]# mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: No)
无法修改密码
用 service mysqld stop
mysqld_safe --skip-grant-tables &
输入 mysql -uroot -p 回车进入
>use mysq;
> update user set password=PASSWO...