错误 1396 (HY000):“root”@“localhost”的创建用户操作失败?

错误 1396 (HY000):“root”@“localhost”的创建用户操作失败?

在系统中,root 由另一个名称和密码定义。那么用户就是 借助 create 命令以 root 身份创建。这将导致错误 1396。

对此的查询如下 -

mysql> create user 'root'@'localhost' identified by 'root123'; 登录后复制