mysql修改root账户密码

使用如下语句

use mysql;
update user set password=password('123456') where user='root' and host='localhost';
flush privileges;

这样,root账户的密码就修改为了123456

如果您觉得本文对您有用,欢迎捐赠或留言~
微信支付
支付宝

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注