Mysql疑难解答
记录使用mysql时遇到的问题,和解决方法
Mysql疑难解答
忘记密码
环境:Win10
net stop mysql
– 停止mysql服务mysqld --console --skip-grant-tables --shared-memory
– 跳过权限验证,并以当前窗口为终端运行mysql服务- 打开新的终端
mysql
无密码登录flush privileges;
重新加载授权表,使用户权限的更改立即生效ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
quit
This post is licensed under CC BY 4.0 by the author.