mysql: cannot create user after delete the user with phpmyadmin

女生的网名这么多〃 提交于 2019-12-24 11:03:06

问题


I was trying to create a mysql user with:

$ mysql5 -u root -p
$ [enter password]
$ create user 'name'@'localhost' indentified by '123456';

Then I accidentally deleted the user while using phpMyAdmin.

So I came back to terminal to create the user again with the lines above. Then it gives me an error:

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

How do I fix this? I need to create the user with the same name and password.

Thanks in advance,

Milo


回答1:


It's very hard to see the issue here without some testing, but you may want to try:

flush privileges;


来源:https://stackoverflow.com/questions/7690059/mysql-cannot-create-user-after-delete-the-user-with-phpmyadmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!