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-^_^:
Database Connectivity Problem?
Started by MPL, Dec 16 2010 02:32 AM
1 reply to this topic
#1
Posted 16 December 2010 - 02:32 AM
|
|
|
#2
Posted 16 December 2010 - 10:05 AM
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.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.


Sign In
Create Account

Back to top









