Newby mySQL Connect

Status
Not open for further replies.

Kenbob

New Member
Messages
18
Reaction score
0
Points
0
<?php
$con = mysql_connect("ciroc","kenbob_Wayne","Wayne");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// some code
mysql_close($con);
?>

Here is my code -- I created a database and made a user and password
Here is my error
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'kenbob_Wayne'@'ciroc.x10hosting.com' (using password: YES) in /home/kenbob/public_html/db_connect.php on line 2
Could not connect: Access denied for user 'kenbob_Wayne'@'ciroc.x10hosting.com' (using password: YES)



Any help?
 

jsobeck

New Member
Messages
479
Reaction score
0
Points
0
Seeing as the error is on line 2 - try using localhost instead of ciroc for the server.
 
Status
Not open for further replies.
Top