MySQL 提示错误:ERROR 1410 (42000): You are not allowed to create a user with GRANT解决办法

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内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!

我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题
沟通购买:QQ咨询 淘宝咨询 微信咨询 淘宝店铺
版权申明及联系
本站部分文章参考或来源于网络,如有侵权请联系站长。本站提供相关远程技术服务,有需要可联系QQ
数据库远程运维 » MySQL 提示错误:ERROR 1410 (42000): You are not allowed to create a user with GRANT解决办法