Log in

View Full Version : xxx'@'localhost' (using password: YES)


Goomzee
04-26-2016, 04:16 AM
After change my host i am getting below error, how to fix this


Database error in vBulletin :

mysql_connect(): Access denied for user 'xxx'@'localhost' (using password: YES)
/home/xxx/public_html/forums/includes/class_core.php on line 311

MySQL Error :
Error Number :
Request Date : Tuesday, April 26th 2016 @ 05:58:47 AM
Error Date : Tuesday, April 26th 2016 @ 05:58:47 AM
Script : http://www.mknexusonline.com/
Referrer : http://www.mknexusonline.com/
IP Address : 119.157.120.150
Username :
Classname : vB_Database
MySQL Version :

TheLastSuperman
04-26-2016, 10:09 AM
Check database in cpanel/plesk and compare to database listed in /includes/config.php - do they match? Is there a user assigned to the database from "MySQL Databases" in cpanel?

You need to edit config.php and ensure your information provided in the file, is correct. "xxx" is probably not the account name in the path unless you're a o.O type of site! xxx = accountname below.

These lines in config.php need to be changed:
$config['Database']['dbname'] = 'accountname_databasename';
$config['MasterServer']['username'] = 'accountname_databaseusername';
$config['MasterServer']['password'] = 'databaseusernamepassword';

Yours will have something along the lines of:
$config['Database']['dbname'] = 'xxx_databasename';
$config['MasterServer']['username'] = 'xxx_databaseusername';
$config['MasterServer']['password'] = 'databaseusernamepassword';

Goomzee
04-26-2016, 10:26 AM
site works i changed password from Cpanel