具體步驟
1、連接服務(wù)器: mysql -u root -p
2、查看當(dāng)前所有數(shù)據(jù)庫:show databases;
3、進(jìn)入mysql數(shù)據(jù)庫:use mysql;
4、查看mysql數(shù)據(jù)庫中所有的表:show tables;
5、查看user表中的數(shù)據(jù):select Host, User,Password from user;
6、修改user表中的Host:update user set Host=‘%’ where User=‘root’;
PS:如果出現(xiàn)報錯,忽略即可:ERROR 1130: Host ‘192.168.10.173’ is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry ‘%-root’ for key ‘PRIMARY’ 忽略即可文章來源:http://www.zghlxwxcb.cn/news/detail-608509.html
7、最后刷新一下即可:flush privileges;
文章來源地址http://www.zghlxwxcb.cn/news/detail-608509.html
到了這里,關(guān)于Mysql報錯:1130-host ... is not allowed to connect to this MySql server如何處理的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!