
输入命令:Grant all privileges on test.* to 'test'@'%';
又报错:You are not allowed to create a user with GRANT ;

不允许使用grant命令,怎么会没权限,奇怪。
于是修改host:update user set host='%' where user='test';

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

但连接Navicat报错

这是因为mysql8的加密方式和Navicat不一样

再试,搞定!


