• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 An exception occurred: Access denied for user

Itworx4me

Well-known member
#1
My host had to do an emergency evacuation of my server to a new server. After they transferred the site I get this error message:

Code:
An exception occurred: Access denied for user 'xxxxxx'@'localhost' (using password: YES) in /home/xxxxxx/public_html/library/Zend/Db/Adapter/Mysqli.php on line 333

Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 553
XenForo_Application->loadDb()
call_user_func_array() in XenForo/Application.php at line 780
XenForo_Application->lazyLoad() in XenForo/Application.php at line 810
XenForo_Application::get() in XenForo/Application.php at line 1098
XenForo_Application::getDb() in XenForo/Error.php at line 47
XenForo_Error::unexpectedException() in XenForo/Application.php at line 295
XenForo_Application::handleException()
I have checked all the passwords and they are correct. Just don't know what to look for next.

Any help would be appreciated....

Thanks,
Itworx4me
 

Liam W

Well-known member
#6
It's saying that the database username or password is incorrect, check them thoroughly :)

Is the username and server correct as well?

Liam
 

Itworx4me

Well-known member
#7
It's saying that the database username or password is incorrect, check them thoroughly :)

Is the username and server correct as well?

Liam
Ended up being a bad mysql user name. Something went screwing in the transfer. Deleting the user and creating a new one fixed the problem. ;)
 
#8
Using DirectAdmin, since it isn't clear, while importing a database, you need to use the MySQL username, not your current, DA Session username.