mysql> create user jumpserver@‘localhost‘ identified by ‘lo@jumpserver‘; ERROR 1396 (HY000): Operation CREATE USER failed for ‘jumpserver‘@‘localhost‘
创建用户时,出现报错,有很多人都说刷新下权限就行:
flush privileges
经过测试,不能成功解决问题,后来想到可能其他表中仍然有用户信息,查看
select * from mysql.db \G;
db表中仍然有 jumpserver的用户,删掉:
delete from mysql.db where User=‘jumpserver‘; flush privileges;
再次创建,可以成功创建。
本文出自 “千面” 博客,请务必保留此出处http://oslibo.blog.51cto.com/10854638/1844391
原文地址:http://oslibo.blog.51cto.com/10854638/1844391