【MySQL】创建用户时报错

目录

  • 前言
  • 解决方法

前言

在使用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,数据库)