Jump to content

Database Connectivity Problem?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
MPL

MPL

    Newbie

  • Members
  • Pip
  • 1 posts
Hello,

I am having trouble connecting to my database to upload a file, all other functionality is working the error message displayed on the web page is:

Warning: mysql_connect(): Access denied for user 'ql137'@'219.34.120.187' (using password: YES) in /var/www//home/html/content/views/Upload.php on line 135
Could not connect to database:


The Config PHP file looks like:

class Config {

var $dbHost = "Database Name";
var $dbUser = "ql137";
var $dbPass = "Database Password";
var $dbName = "ql137";
}


In the upload PHP file the line to connect to the database is displayed as:

$link = mysql_connect($dbServer, $dbUser, $dbPassword)
or die("Couldn't connect to the Database");


Any help would be greatly appreciated, thanks.

:c-^_^:

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
It appears that either the user ql137 is incorrect, there is no MySQL database at 219.34.120.187 listening to port 3306, or the password is incorrect.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.