忘记了Mysql的root用户密码,尝试连接时提示: mysqladmin: connect to server at 'localhost' failed ERROR : Access denied for user 'root'@'localhost' (using password: NO). 停止mysql服务# service mysqld stop 启动mysqld_safe ,跳过启动授权表.启动时加上skip-grant-tables参数目的是在启动mysql时不启动grant-