欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

mysql8報(bào)錯(cuò):ERROR?1410?(42000):?You?are?not?allowed?to?create?a?user?with?GRANT解決辦法

 更新時(shí)間:2022年06月30日 09:19:07   作者:CgLeaf  
電腦新裝的mysql,版本為8.0以上,分配權(quán)限時(shí)直接帶密碼和賬號(hào)會(huì)報(bào)錯(cuò),這篇文章主要給大家介紹了關(guān)于mysql8報(bào)錯(cuò):ERROR?1410?(42000):?You?are?not?allowed?to?create?a?user?with?GRANT的解決辦法,需要的朋友可以參考下

1. 今天剛裝了mysql8.0.13,試著分配幾個(gè)賬號(hào)和權(quán)限,結(jié)果報(bào)錯(cuò):

2. 查資料得知mysql8的分配權(quán)限不能帶密碼隱士創(chuàng)建賬號(hào)了,要先創(chuàng)建賬號(hào)再設(shè)置權(quán)限

輸入命令:Grant all privileges on test.* to 'test'@'%';

又報(bào)錯(cuò):You are not allowed to create a user with GRANT ;

不允許使用grant命令,怎么會(huì)沒(méi)權(quán)限,奇怪。

3.后來(lái)想到了mysql數(shù)據(jù)表user中的host

于是修改host:update user set host='%' where user='test';

再執(zhí)行兩次

 Grant all privileges on test.* to 'test'@'%';

成功:

但連接Navicat報(bào)錯(cuò)

 這是因?yàn)閙ysql8的加密方式和Navicat不一樣

4.修改加密方式:alter user test identified with mysql_native_password by 'xxx';

再試,搞定! 

總結(jié)

到此這篇關(guān)于mysql8報(bào)錯(cuò):ERROR 1410 (42000): You are not allowed to create a user with GRANT解決辦法的文章就介紹到這了,更多相關(guān)ERROR 1410 (42000): You are not allowed to create a user with GRANT內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論