MySQL Connection Issue


#1

PHP Error Message
Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at ‘reading initial communication packet’, system error: 113 in /home/a1125560/public_html/members.php on line 3

Free Web Hosting
Lost connection to MySQL server at ‘reading initial communication packet’, system error: 113

Previously I was able to connect to the database perfectly fine, but now this error message shows up. I hadn’t updated the portion of the coding, I’m unsure why it’s not anymore. This is the same for multiple pages, all of which connected to the same database. Assuming I haven’t changed the coding, that previously worked, and made not edits to the login details of my database, would this be a server side issue? I’ve checked and all login info matches…

Database info,

My code,

mysql_connect(“mysql8.000webhost.com”, “a1125560_admin”, “PASSWORDHERE”) or die(mysql_error());
mysql_select_db(“a1125560_users”) or die(mysql_error());


#2

@deer Migrate to new panel to avoid these kind of issues.