MySQL报错113_mysql 2003 (113)
1.?問題描述遠(yuǎn)程訪問192.168.2.200主機(jī)的mysql數(shù)據(jù)庫時(shí),?出現(xiàn)以下錯(cuò)誤:[plain]?view?plain?copy?#?mysql?-host192.168.2.200?-uroot?-p??Enter?password:???ERROR?2003?(HY000):?Can‘t?connect?to?MySQL?server?on?‘192.168.2.200‘?(113)2.?解決方法首先確保mysql開啟了遠(yuǎn)程授權(quán):?http://blog.csdn.net/cryhelyxx/article/details/40114695參考了:?http://blog.csdn.net/qustdjx/article/details/26937325依然無法解決問題,?最后在網(wǎng)上搜索了下,?說是系統(tǒng)的防火墻開啟的原因.參考了:
1.查看配置文件:
skip-networking?#注釋掉?因?yàn)樗瞧帘蔚粢磺蠺CP/IP連接
bind-address?=?127.0.0.1?#它和上一個(gè)選項(xiàng)是異曲同工,要想遠(yuǎn)程連接,也得注釋掉
2.如果以上工作都做過還是出現(xiàn):
ERROR?2003?(HY000):?Can‘t?connect?to?MySQL?server?on?‘*.*.*.*‘?(113),那就得考慮防火墻的問題了,關(guān)掉防火墻/etc/rc.d/init.d/iptables?stop
修改完后需要?restart?mysql?(/etc/init.d/mysql?restart)
得到了解決方法.現(xiàn)在關(guān)閉防火墻:[plain]?view?plain?copy?#?/etc/rc.d/init.d/iptables?stop??iptables:?Setting?chains?to?policy?ACCEPT:?filter??????????[??OK??]??iptables:?Flushing?firewall?rules:?????????????????????????[??OK??]??iptables:?Unloading?modules:???????????????????????????????[??OK??]再次遠(yuǎn)程連接mysql數(shù)據(jù)庫:[plain]?view?plain?copy?#?mysql?-h192.168.2.200?-uroot?-p??Enter?password:???Welcome?to?the?MySQL?monitor.??Commands?end?with?;?or?\g.??Your?MySQL?connection?id?is?2962??Server?version:?5.5.22-log?MySQL?Community?Server?(GPL)????Copyright?(c)?2000,?2014,?Oracle?and/or?its?affiliates.?All?rights?reserved.????Oracle?is?a?registered?trademark?of?Oracle?Corporation?and/or?its??affiliates.?Other?names?may?be?trademarks?of?their?respective??owners.????Type?‘help;‘?or?‘\h‘?for?help.?Type?‘\c‘?to?clear?the?current?input?statement.????mysql>OK,?問題解決,?Enjoy?it!!!
本文出自 “江湖笑笑生” 博客,請(qǐng)務(wù)必保留此出處http://hashlinux.blog.51cto.com/9647696/1792579
mysql 2003 (113)
標(biāo)簽:mysql???主機(jī)???server???數(shù)據(jù)庫???error
本條技術(shù)文章來源于互聯(lián)網(wǎng),如果無意侵犯您的權(quán)益請(qǐng)點(diǎn)擊此處反饋版權(quán)投訴
本文系統(tǒng)來源:http://hashlinux.blog.51cto.com/9647696/1792579
總結(jié)
以上是生活随笔為你收集整理的MySQL报错113_mysql 2003 (113)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: keil教程
- 下一篇: MySQL5.6主从复制搭建基于日志(b