摘要:
1 先停止掉 MYSQL 服务/etc/init.d/mysqld stop2 使用mysqld_safe 安全登录mysqld_safe --skip-grant-tables &3 执行登录,修改密码等mysql -u -rootuse mysql;update user set password=password('your new password') where user='root';exit;4 重新启动MySQL服务/etc/init.d/mysqld start 阅读全文