最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

解決mysql數(shù)據(jù)庫設(shè)置遠(yuǎn)程連接權(quán)限執(zhí)行g(shù)rant all privileges on *.* to 'root'@'%' identified by '密碼' with grant optio報(bào)錯(cuò)

 更新時(shí)間:2022年11月06日 11:47:21   作者:王克兵  
這篇文章主要介紹了解決mysql數(shù)據(jù)庫設(shè)置遠(yuǎn)程連接權(quán)限執(zhí)行g(shù)rant all privileges on *.* to 'root'@'%' identified by '密碼' with grant optio報(bào)錯(cuò),通過本文給大家分享問題原因解析及解決方法,需要的朋友可以參考下

mysql數(shù)據(jù)庫設(shè)置遠(yuǎn)程連接權(quán)限,執(zhí)行g(shù)rant all privileges on *.* to 'root'@'%' identified by '密碼' with grant optio報(bào)錯(cuò)

ERROR1558 (HY000): Column count ofmysql.user is wrong. Expected 43, found 42. Created with MySQL 50556, now running 50639. Please use mysql_upgrade to fix this error.

解決辦法:

使用命令:mysql_upgrade -u[username] -p[password]就可以解決。

使用mysql_upgrade對數(shù)據(jù)庫的數(shù)據(jù)表結(jié)構(gòu)等升級(jí)時(shí),數(shù)據(jù)庫引擎MyISAM 會(huì)做檢查、修復(fù)的動(dòng)作,InnoDB 執(zhí)行 mysql_upgrade 沒有作用。

查找MySQL的安裝目錄找到mysql_upgrade :

  • whereismysql_upgrade
  • cd /usr/bin/
  • ./mysql_upgrade -uroot -p123 (123為密碼)

然后進(jìn)入到mysql再執(zhí)行權(quán)限修改即可:grant all privileges on *.* to 'root'@'%' identified by 'root4xml004a' with grant option;

如:

mysql中遠(yuǎn)程連接權(quán)限語句grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant optio報(bào)錯(cuò)

grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant optio

原因: mysql的版本問題,這條語句適用于MySQL8.0之前

解決: mysql8.0及以上版本需要使用以下語句:

create user root@'%' identified by '123456';
grant all privileges on *.* to root@'%' with grant option;

到此這篇關(guān)于解決mysql數(shù)據(jù)庫設(shè)置遠(yuǎn)程連接權(quán)限執(zhí)行g(shù)rant all privileges on *.* to 'root'@'%' identified by '密碼' with grant optio報(bào)錯(cuò)的文章就介紹到這了,更多相關(guān)mysql遠(yuǎn)程連接權(quán)限內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論

汶上县| 清河县| 开封市| 五河县| 江口县| 鄯善县| 邢台县| 尼勒克县| 泸州市| 四川省| 阿城市| 长宁区| 海南省| 象山县| 金溪县| 辽中县| 仙桃市| 稷山县| 乃东县| 敖汉旗| 鹿泉市| 合阳县| 巍山| 剑川县| 夏河县| 神农架林区| 玛沁县| 柳林县| 容城县| 孟村| 珠海市| 桃园市| 丹棱县| 罗山县| 绿春县| 桦甸市| 广德县| 保康县| 海宁市| 张家川| 炎陵县|