mysql版本是5.7
- 启动服务后,找到MYSQL--MYSQL console--弹出命令窗口(刚开始没有初始用户名跟密码,可直接回车执行)
use mysql;
update user set authentication_string=password('自己的密码') where user='root' ;
flush privileges;
quit;
重启整个服务,数据库密码就更换成新的密码
mysql版本是5.7
use mysql;
update user set authentication_string=password('自己的密码') where user='root' ;
flush privileges;
quit;
重启整个服务,数据库密码就更换成新的密码
本文标题:wampserver3.1.6更新mysql密码
本文链接:https://www.haomeiwen.com/subject/ixkedqtx.html
网友评论