mysql修改密码

net stop mysql80

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

E:/temp.txt存放的内容

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

原文地址:https://www.cnblogs.com/xuzhongtao/p/11318776.html