【MySQL】创建用户时报错 2026/9/27 7:35:58 拓冰建站 浏览量 目录 前言解决方法 前言 在使用mysql服务时,用root创建用户,出现如下错误 The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 解决方法 在mysql服务中输入指令 flush privileges; 重启mysqld服务器 systemctl restart mysqld 之后重新创建用户。
目录 前言解决方法 前言 在使用mysql服务时,用root创建用户,出现如下错误 The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 解决方法 在mysql服务中输入指令 flush privileges; 重启mysqld服务器 systemctl restart mysqld 之后重新创建用户。