服务器上MySQL数据库密码忘了

不校验授权的方式打开MySQL进程
service mysqld start --skip-grant-tables &
重新设置新密码
update mysql.user set password=PASSWORD(‘newpassword’) where User=‘root’;

详细原文: https://www.cnblogs.com/hgj123/p/5279471.html

猜你喜欢

转载自blog.csdn.net/qq_30923243/article/details/85880957