MySQL错误2013 [英] MySQL Error 2013
问题描述
当我运行程序超过两天时,我面临与MySQL问题的连接失败.当连接数据库时,MySQL错误代码为2013. MySQL服务器和客户端程序都在同一台计算机上.我使用的是FC5,因为我的操作系统和MySQL版本是5.0.18.有人可以对此有所启发吗?
I am facing connection failure to MySQL problem when I run my program for more than couple of days.MySQL Error Code is 2013 while connecting to Database. MySQL server and client programs are both on same machine. I am using FC5 as my OS and MySQL version is 5.0.18. Can anybody throw some light on this?
我在调用mysql_real_connect()
...时遇到mysql错误2013 ...
I am getting mysql error 2013 while calling mysql_real_connect()
...
感谢您的帮助.
推荐答案
尝试使用localhost而不是您自己的IP. 我不知道为什么,但这立即为我解决了这个问题.
Try using localhost, instead of your own IP. I don't know why, but this immediately fixed the problem for me.
如果有人能澄清我将不胜感激 为什么这样起作用,突然之间.
I would be very grateful if someone could clarify why this worked, all of a sudden.
这篇关于MySQL错误2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!