MySQL报错113_mysql 2003 (113)
1.?問題描述遠程訪問192.168.2.200主機的mysql數據庫時,?出現以下錯誤:[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開啟了遠程授權:?http://blog.csdn.net/cryhelyxx/article/details/40114695參考了:?http://blog.csdn.net/qustdjx/article/details/26937325依然無法解決問題,?最后在網上搜索了下,?說是系統的防火墻開啟的原因.參考了:
1.查看配置文件:
skip-networking?#注釋掉?因為它是屏蔽掉一切TCP/IP連接
bind-address?=?127.0.0.1?#它和上一個選項是異曲同工,要想遠程連接,也得注釋掉
2.如果以上工作都做過還是出現:
ERROR?2003?(HY000):?Can‘t?connect?to?MySQL?server?on?‘*.*.*.*‘?(113),那就得考慮防火墻的問題了,關掉防火墻/etc/rc.d/init.d/iptables?stop
修改完后需要?restart?mysql?(/etc/init.d/mysql?restart)
得到了解決方法.現在關閉防火墻:[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??]再次遠程連接mysql數據庫:[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!!!
本文出自 “江湖笑笑生” 博客,請務必保留此出處http://hashlinux.blog.51cto.com/9647696/1792579
mysql 2003 (113)
標簽:mysql???主機???server???數據庫???error
本條技術文章來源于互聯網,如果無意侵犯您的權益請點擊此處反饋版權投訴
本文系統來源:http://hashlinux.blog.51cto.com/9647696/1792579
總結
以上是生活随笔為你收集整理的MySQL报错113_mysql 2003 (113)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: keil教程
- 下一篇: MySQL5.6主从复制搭建基于日志(b