lk_sandler45
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 0
for setting up my DJ panel and I've set up MYSQL with a databse and but while connecting to the Panel the SQL gives the following error : Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 110 in /home/nentify/public_html/staff/dj/sql.php on line 14
Couldn't select database.
The SQL file which needs the following information :
<?php
//MySQL Hostname
$hostname = 'lukerockz.x10.mx';
//MySQL Database Username
$sqlname = 'nentify_Luke';
//MySQL Database Password
$sqlpass = '[REMOVED]';
//MySQL Database Name
$mysqldb = 'nentify_jabba';
$connection = mysql_connect($hostname, $sqlname, $sqlpass) or die("Couldn't select database.");
$db = mysql_select_db($mysqldb, $connection) or die("Couldn't select database.");
?>
Can I please know where I am going wrong.
Couldn't select database.
The SQL file which needs the following information :
<?php
//MySQL Hostname
$hostname = 'lukerockz.x10.mx';
//MySQL Database Username
$sqlname = 'nentify_Luke';
//MySQL Database Password
$sqlpass = '[REMOVED]';
//MySQL Database Name
$mysqldb = 'nentify_jabba';
$connection = mysql_connect($hostname, $sqlname, $sqlpass) or die("Couldn't select database.");
$db = mysql_select_db($mysqldb, $connection) or die("Couldn't select database.");
?>
Can I please know where I am going wrong.
Last edited by a moderator: