目录 前言解决方法 前言 在使用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 之后重新创建用户。