600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > mysql登陆1130错误_解决MySQL远程登录时出现ERROR 1130错误问题

mysql登陆1130错误_解决MySQL远程登录时出现ERROR 1130错误问题

时间:2020-09-05 23:40:30

相关推荐

mysql登陆1130错误_解决MySQL远程登录时出现ERROR 1130错误问题

在用mysql进行远程连接时出现下列错误

[root@openfire~]#mysql-uroot--p

Enterpassword:

ERROR1130(HY000):Host'192.168.0.15'isnotallowedtoconnecttothisMySQLserver

解决方法:

[root@mysql~]#mysql-uroot-p

Enterpassword:

mandsendwith;or\g.

YourMySQLconnectionidis10

Serverversion:5.1.71Sourcedistribution

Copyright(c)2000,,Oracleand/oritsaffiliates.Allrightsreserved.

OracleisaregisteredtrademarkofOracleCorporationand/orits

affiliates.Othernamesmaybetrademarksoftheirrespective

owners.

Type'help;'or'\h'forhelp.Type'\c'toclearthecurrentinputstatement.

mysql>GRANTALLPRIVILEGESONopenfire.*TO'root'@'192.168.0.15'IDENTIFIEDBY'redhat'WITHGRANTOPTION;

QueryOK,0rowsaffected(0.00sec)

mysql>flushprivileges;

QueryOK,0rowsaffected(0.00sec)

再次进行登录测试

[root@openfire~]#mysql-uroot--p

Enterpassword:

mandsendwith;or\g.

YourMySQLconnectionidis22

Serverversion:5.1.71Sourcedistribution

Copyright(c)2000,,Oracleand/oritsaffiliates.Allrightsreserved.

OracleisaregisteredtrademarkofOracleCorporationand/orits

affiliates.Othernamesmaybetrademarksoftheirrespective

owners.

Type'help;'or'\h'forhelp.Type'\c'toclearthecurrentinputstatement.

mysql>exitBye问题解决

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。