mysql ERROR 1396(HY000)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql ERROR 1396(HY000)相关的知识,希望对你有一定的参考价值。
mysql> create user [email protected]‘localhost‘ identified by ‘[email protected]‘; 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
以上是关于mysql ERROR 1396(HY000)的主要内容,如果未能解决你的问题,请参考以下文章
mysql重建某个用户账号(ERROR 1396 (HY000): Operation CREATE USER failed)
Mac mySql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/my
ERROR 2002 (HY000):mysql 启动常见错误
已解决mysql连接出错:ERROR 1040 (HY000): Too many connections
关于“ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/my