hello all,

Status
Not open for further replies.

sky.deep8732

New Member
Messages
1
Reaction score
0
Points
0
am trying to connect to mysql but i get this error ,
[Lost connection to MySQL server at 'reading initial communication packet', system error: 111]
what this about is something wrong with my following code
$db_server = 'http://eng-hadi.x10.mx';
$db_name = 'hadi1987_school9a';
$db_user = 'hadi1987_lolo';
$db_password = '*Removed*';

please help with that,

Thanks in advance
 
Last edited by a moderator:

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
First update your database password since anyone on your server could log into it now. Second, update your script with the new password. Third, set $db_server to "localhost". That should fix it.
 
Status
Not open for further replies.
Top