mysql> -u root -p
mysql>use mysql;
mysql>update user set Password=password("newpassword") where User='root';
mysql>flush privileges;
mysql>quit
如何修改mysql的root密码
最新推荐文章于 2024-09-07 08:07:39 发布
mysql> -u root -p
mysql>use mysql;
mysql>update user set Password=password("newpassword") where User='root';
mysql>flush privileges;
mysql>quit