Mysql connection just cut off

Status
Not open for further replies.

networker

New Member
Messages
97
Reaction score
0
Points
0
Hello.After having no problems with my mysql
databade for months I now get this error:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/netneons/public_html/mobilityfriend.com/Users/regdone.php on line 82

I don't know why?For months everthing was fine.
 

networker

New Member
Messages
97
Reaction score
0
Points
0
For months everything was fine using 127.0.0.1.Today when this happened I tried using @localhost but to no avail.
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
I changed the connection line on your login script to
PHP:
$db = mysql_connect("localhost","netneons_netneon","**************");
and it worked.
 

networker

New Member
Messages
97
Reaction score
0
Points
0
Thanks Chrisopher.That appears to have fixed it.
That's an awfull lot of pages I have to
change now though.

Thanks
 
Last edited:

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
I'm going to close this one for now. Please feel free to reopen it if you continue to have issues or just create a new thread if you have a new issue.
 
Status
Not open for further replies.
Top