创建用户:
create user ‘test’@’%’ identified by ‘test’;
显示ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’@’%’
查看是不是存在这个用户
select user from user;
发现没有这个用户。
记得上次有删除过这个用户。可能没有刷新权限
flush privileges;
之后还是不行报错ERROR 1396 (HY000): Operation CREATE USER failed for ‘test’@’%’
没办法再删除一次:
drop user ‘test’@’%’;
flush privileges;
之后create user ‘test’@’%’ identified by ‘test’;
成功。
网上找了下原因:
Assume the user is there, so drop the user
After deleting the user, there is need to flush the mysql privileges
Now create the user.

作者:rick-he
来源:CSDN
原文:https://blog.csdn.net/u011575570/article/details/51438841
版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-07-04
  • 2021-08-25
  • 2022-12-23
  • 2022-01-26
相关资源
相似解决方案