欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

MySQL创建用户错误ERROR 1396 (HY000): Operation CREATE USER failed for 'XXXX'@'XXXX'问题解

程序员文章站 2023-09-05 18:37:39
环境:CentOS 6.5 64bit 创建用户: mysql> create user 'stalker'@'localhost' id...

环境:CentOS 6.5 64bit

创建用户:

mysql> create user 'stalker'@'localhost' identified by '1';

错误ERROR 1396 (HY000): Operation CREATE USER failed for 'stalker'@'localhost'

刷新权限

mysql> flush privileges;

之后再创建用户,还是报错ERROR 1396 (HY000): Operation CREATE USER failed for 'stalker'@'localhost'

尝试删除一次:

mysql> drop user 'stalker'@'localhost' ;

mysql> flush privileges;

mysql> create user 'stalker'@'localhost' identified by '1';

成功。