Mysql Connection problems

Status
Not open for further replies.

jaaaaaay

New Member
Messages
1
Reaction score
0
Points
0
I have created a database but cannot connect to it. Im pretty sure the info is right ( the password definitely is)
PHP:
define("DB_SERVER", "localhost");
define("DB_USER", "jaaaaaay_root");
define("DB_PASS", "****");
define("DB_NAME", "jaaaaaay_codedatabase");
then i call this file from a php used to create the database tables
PHP:
include('include/constants.php');
$connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error());
Code:
And this returns the following error
[B]Warning[/B]:  mysql_connect() function.mysql-connect: Access denied for user 'jaaaaaay_root'@'localhost' (using password: YES) in [B]/home/jaaaaaay/public_html/....php[/B] on line [B]3[/B]
Access denied for user 'jaaaaaay_root'@'localhost' (using password: YES)
 
Last edited:
Status
Not open for further replies.
Top