MYSQL Problem

Status
Not open for further replies.

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.
 
Last edited by a moderator:

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

The MySQL hostname is localhost. Please try with that. Also, NEVER post passwords here. I've removed it for you. This is a public forum.
 
Last edited:
Status
Not open for further replies.
Top