I recieve the following message when trying to use my database with an auto set-up - Lost connection to MySQL server at 'reading initial communication packet', system error: 111 - The scriptI'm using goes like this
$database['host'] = '127.0.0.1';
$database['username'] = 'aircar';
$database['password'] = '--------';
$database['database'] = 'cart';
$database['prefix'] = 'aircar_';
//================================
$connect = @mysql_connect($database['host'] , $database['username'] , $database['password']);
if (!$connect)
{
die (mysql_error());
}
mysql_select_db($database['database'], $connect) or die (mysql_error());
any thought???
regards aircar
$database['host'] = '127.0.0.1';
$database['username'] = 'aircar';
$database['password'] = '--------';
$database['database'] = 'cart';
$database['prefix'] = 'aircar_';
//================================
$connect = @mysql_connect($database['host'] , $database['username'] , $database['password']);
if (!$connect)
{
die (mysql_error());
}
mysql_select_db($database['database'], $connect) or die (mysql_error());
any thought???
regards aircar