当前位置:网站首页> 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内容请搜索软件开发网以前的文章或继续浏览下面的相关文章希望大家以后多多支持软件开发网!
边栏推荐
- 容器常用命令
- Interview experience of service end test engineer
- 终于看懂科学了!200张图领略人类智慧的巅峰
- What is XR extended reality and what are the XR cloud streaming platforms
- 有意思的鼠标指针交互探究
- IIS无法加载字体文件(*.woff,*.svg)的解决办法
- 几百行代码实现一个 JSON 解析器
- flinkcdc如果监控的数据库为mongo就必须是集群版吗
- Policy Center > Misrepresentation
- [leetcode] linked list sorting (gradually increasing the space-time complexity)
猜你喜欢

Simulation of two-color ball system to judge the winning situation

Policy Center > Google Play‘s Target API Level Policy

Alibaba cloud OSS object storage cross domain settings

BYD is more and more like Huawei?

Go micro installation

服务端测试工程师面试经验

《你的灯亮着吗》开始解决问题前,得先知道“真问题”是什么

What is XR extended reality and what are the XR cloud streaming platforms

互联网研发效能之去哪儿网(Qunar)核心领域DevOps落地实践

KDD 2022 | 我们离通用预训练推荐模型还有多远?推荐系统的通用序列表示学习模型 UniSRec
随机推荐
Policy Center > Google Play‘s Target API Level Policy
Message queue ten questions
Log4j2 进阶使用
ASP. Net core Middleware
《你的灯亮着吗》开始解决问题前,得先知道“真问题”是什么
Google Play 索引表
Go-Micro安装
数数据可视化实战案例(timeline轮播图,streamlit 控件年份 metabase可视化使用教程)2.0
Advanced C language - pointer 3 - knowledge points sorting
[附下载]渗透测试神器Nessus安装及使用
iMeta | 叶茂/时玉等综述环境微生物组中胞内与胞外基因的动态穿梭与生态功能...
Specific steps for installing mysql8.0 on Windows system
Kindle down, ireader relay
开源 STM32 USB-CAN项目
Management joint examination - mathematical formula
linux下新建Mysql数据库并导入sql文件
About pickle module - 6 points that beginners must know
Policy Center > Deceptive Behavior
What is XR extended reality and what are the XR cloud streaming platforms
渲染引擎的资源加载优化