mysql-创建用户报错ERROR 1396 (HY000): Operation CREATE USER failed for 'root'@'localhost'
2024-10-20 15:47:27
创建用户:
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.
最新文章
- C# 进程间通信之二传递复杂数据类型(转)
- TopCoder SRM 590
- LR测试https协议设置方法
- 全国信息学奥林匹克联赛(NOIP2014)复赛 模拟题Day2 长乐一中
- 论文阅读之:Is Faster R-CNN Doing Well for Pedestrian Detection?
- 立体匹配:关于Middlebury提供的源码的简化后的结构
- CODESOFT对话框中的显示字体怎么修改
- 关于在 loadView 中改变状态栏的可视性
- Could not load the assembly 'App_Web_cwclgcuu'. Make sure that it is compiled before accessing the page.
- poj 1094
- VS源码编译QuaZip(Windows下)
- vue全局引入scss文件(推荐)
- CSS3实战开发: 折角效果实战开发
- python 写入CSV出现空白行问题及拓展
- Ubuntu16.04开机蓝屏问题解决
- 编译安装MySQL-5.7.13
- 安装kafka 集群 步骤
- kafka 部署
- java基础---->;Java中枚举的使用(一)
- STL标准库-容器-rb_tree