Access denied for user: 'databaseuser @ localhost' ... Unable to connect to database
This usually mean's that your database user name or password is either incorrect, or not established yet.
- If you are using a user name and password that is different from your hosting user name and password, make sure that you have added that user name and password that is set in your dbconfig.php file (in the secure directory) into your control panel.
- Ensure that your user name is associated with the database in the database hosting's database setup area.
- Check your mySQL user name. In cPanel, an account may cut off everything after the first 8 characters. For instance, if you create a user name called 'mysite_cataloguser', you may need to use 'mysite_catalogu' in the dbconfig.php file.
- Check your mySQL user name prefixes. On some servers (like Alabanza hosts and cPanel servers), you will need to prefix your mySQL user name with your hosting user name. So if you create the user name "catuser", your mySQL user name may be "yoursite_catuser".
- Check your mySQL host name. Many hosts use 'localhost' for the host name. Some, like GoDaddy, use a different host name.
- If all of the database details are correct, check with your web host to see if the database is down or if anything has changed in the hosting setup.