mysql 创建密码错误 怎么办

bangongJIAO1@c 发布于 2025-12-20 阅读(4)

MySQL创建密码错误的方法:

在设置

mysql> set password for root@localhost = password('admin');

时出现错误:

The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

解决方法:

mysql> flush privileges; 刷新权限

再重新输入设置密码。