mysql常见问题解决方案--本人均在实际环境中验证过

免安装mysql5.7版本引起的诸多问题,网上有太多不负责任的回答,我觉得有必要慢慢整理下。

------------mysql不能正常启动解决方案--------------------
mysqld --initialize
mysqld --install
net start mysql

--解决root密码无效,无法登陆的问题
net stop mysql
mysqld --skip-grant-tables
打开另外一个窗口运行下面的命令
mysql
update user set authentication_string=password('root123') where user='root' and host='localhost';
---set password=password('root123');(如果将密码修改为了root,那么就需要重新用set命令进行更新)

posted on 2020-06-01 18:00  不要着急再休息一会  阅读(94)  评论(0编辑  收藏  举报

导航