I try to connect to my mySQL server through localhost on my dedicated server, but I keep getting the error:
Lost connection to MySQL server at 'reading initial communication packet', system error: 110
CODE:
<?php $link = mysql_connect('localhost', '****', '****'); if (!$link) { die('Could not connect: ' . mysql_error()); }
I did not configure a firewall, so all ports must be open. What do I need to do? I already checked several other similar questions, but none of them solved my problem. I am not connecting remotely .
UPDATE
Ok, I found a problem connecting to the server (I connected twice). I can connect to the server now, but when I run any request, the server returns FALSE. I used this code before, and it worked before, but now that I have changed the servers, it does not work.
Thanks,
David
source share