mysql修改密码

net stop mysql80

mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini"--init-file="E:/temp.txt" --console

E:/temp.txt存放的内容

ALTER user 'root'@'localhost' IDENTIFIED BY '123456';

posted @ 2019-08-08 00:54  taotao12  阅读(100)  评论(0编辑  收藏  举报