aburayane98
New Member
- Messages
- 6
- Reaction score
- 0
- Points
- 0
Hello everybody,
I transfer some files to the server, but it seems doesn't work, but on locahost it does, this is the error:
the code is:
I transfer some files to the server, but it seems doesn't work, but on locahost it does, this is the error:
HTML:
Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/user/public_html/Connect.php on line 82
the code is:
PHP:
$dbhost = '***';
$dbuser = '****';
$dbpass = '****';
# Encoding
$Charset = 'utf8';
// connection à la DB
$link = mysql_connect($dbhost,$dbuser,$dbpass); // this is line 82
mysql_set_charset($Charset,$link);
mysql_query("SET NAMES $Charset;", $link) or die ('cannot connect to the server: '.mysql_error());
Last edited: