I have created a database but cannot connect to it. Im pretty sure the info is right ( the password definitely is)
then i call this file from a php used to create the database tables
PHP:
define("DB_SERVER", "localhost");
define("DB_USER", "jaaaaaay_root");
define("DB_PASS", "****");
define("DB_NAME", "jaaaaaay_codedatabase");
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: