Mysql 重新设置密码

https://blog.csdn.net/qq_42307920/article/details/127049565

mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --console --skip-grant-tables --shared-memory
flush privileges;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';
ALTER USER 'root'@'%' IDENTIFIED BY 'password';

 

posted @ 2023-12-19 10:34  xiaoyinxxy  阅读(1)  评论(0编辑  收藏  举报