unable to connect to mysql database,

Status
Not open for further replies.

chrisjohn.24552

New Member
Messages
1
Reaction score
0
Points
0
i am unable to connect to my sql data base with following values,
help me
my error is unable to connect.

server "boru"

$username = "********";
$password = "******";
$host = "localhost:2083";
$link = mysql_connect($host, $username, $password);
if ($link) {
die('Could not connect: ' . mysql_error());
}
 

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Hi,
Can you please check the following:
PHP:
<?php
$con = mysql_connect("localhost","sql-username","sql-password");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// some code
?>

This works if everything else is correct...i.e, username and password.
Try and revert back if you have a problem
 
Status
Not open for further replies.
Top