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

ERROR 1396 (HY000): Operation CREATE USER failed for 'Raikon'@'localhost'解决办法

程序员文章站 2022-06-17 19:20:16
MariaDB [mysql]> create user Raikon@localhost identified by "atenorth"; ERRO...

MariaDB [mysql]> create user Raikon@localhost identified by "atenorth";

ERROR 1396 (HY000): Operation CREATE USER failed for 'Raikon'@'localhost'

因为使用旧的方法删除用户

use mysql

delete from user where User="Raikon";

这样删除用户是不支持的

即使

flush privileges;

也不行

create user Raikon@localhost identified by 'atenorth';

OK