当前位置:网站首页> mysql8报错:ERROR 1410 (42000): You are not allowed to create a user with GRANT解决办法
mysql8报错:ERROR 1410 (42000): You are not allowed to create a user with GRANT解决办法
2022-06-30 15:41:00 【1024问】
1. 今天刚装了mysql8.0.13,试着分配几个账号和权限,结果报错:

2. 查资料得知mysql8的分配权限不能带密码隐士创建账号了,要先创建账号再设置权限
输入命令:Grant all privileges on test.* to 'test'@'%';
又报错:You are not allowed to create a user with GRANT ;

不允许使用grant命令,怎么会没权限,奇怪。
3.后来想到了mysql数据表user中的host
于是修改host:update user set host='%' where user='test';

再执行两次
Grant all privileges on test.* to 'test'@'%';
成功:

但连接Navicat报错

这是因为mysql8的加密方式和Navicat不一样
4.修改加密方式:alter user test identified with mysql_native_password by 'xxx';

再试,搞定!

总结
到此这篇关于mysql8报错:ERROR 1410 (42000): You are not allowed to create a user with GRANT解决办法的文章就介绍到这了,更多相关ERROR 1410 (42000): You are not allowed to create a user with GRANT内容请搜索软件开发网以前的文章或继续浏览下面的相关文章希望大家以后多多支持软件开发网!
边栏推荐
- Is your light on? Before you start to solve a problem, you need to know what the "real problem" is
- Reptile (1) - Introduction to basic reptile theory
- String common API
- [leetcode] linked list sorting (gradually increasing the space-time complexity)
- topic: Privacy, Deception and Device Abuse
- 波导的种类
- Practical cases of data visualization (timeline rotation diagram, streamlit control year metabase visualization tutorial) 2.0
- Policy Center > Deceptive Behavior
- ASP. Net core Middleware
- Message queue ten questions
猜你喜欢

智慧风电:数字孪生 3D 风机智能设备运维

ASP. Net core Middleware

CVPR 2022丨特斯联AI提出:基于图采样深度度量学习的可泛化行人重识别

Policy Center-Permissions and APIs that Access Sensitive Information

《网络是怎么样连接的》读书笔记 - 汇总篇
![[unity ugui] scrollrect dynamically scales the grid size and automatically locates the middle grid](/img/c9/ff22a30a638b5d9743d39e22ead647.png)
[unity ugui] scrollrect dynamically scales the grid size and automatically locates the middle grid

大学生研究生毕业找工作,该选择哪个方向?

Finally understand science! 200 pictures to appreciate the peak of human wisdom

topic: Privacy, Deception and Device Abuse

Policy Center-User Data
随机推荐
topic: Privacy, Deception and Device Abuse
[leetcode] linked list sorting (gradually increasing the space-time complexity)
渲染引擎的资源加载优化
技不压身,快速入门ETH智能合约开发,带你进入ETH世界
Policy Center > Google Play‘s Target API Level Policy
Cloud XR, how to help industrial upgrading
Deep understanding Net (2) kernel mode 1 Kernel mode construct event event
波导的种类
Policy Center-User Data
Kindle倒下,iReader接力
4.6 floating point number
Data governance Market: Yixin Huachen faces left, Huaao data faces right
iMeta | 叶茂/时玉等综述环境微生物组中胞内与胞外基因的动态穿梭与生态功能...
Go-Micro安装
Alibaba cloud OSS object storage cross domain settings
Policy Center-Permissions and APIs that Access Sensitive Information
【算法篇】四种链表总结完毕,顺手刷了两道面试题
Which direction should college students choose to find jobs after graduation?
Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.
“低代码”在企业数字化转型中扮演着什么角色?