Database connection errors in Joomla 3.0 usually occur when the CMS cannot connect to the MySQL database. On ruachost.com, these errors often appear as “Error displaying the error page” or “Unable to connect to the database”.

 

Common Causes

  • Incorrect database username or password.

  • Wrong database host (e.g., localhost vs. a remote host).

  • Database server is down or overloaded.

  • Corrupted or missing configuration.php settings.

  • Database user does not have sufficient privileges.

 

Steps to Troubleshoot

1. Verify Database Credentials

  1. Log in to cPanel on ruachost.com..

  2. Go to MySQL Databases.

  3. Confirm the database name, username, and password.

  4. Ensure the user is assigned to the database with ALL PRIVILEGES.

 

2. Check configuration.php

  1. Access your Joomla installation directory via File Manager or SSH.

  2. Open the configuration.php file.

  3. Verify the following lines:

    public $user = 'db_username';
    public $password = 'db_password';
    public $db = 'db_name';
    public $host = 'localhost';
    
  4. Ensure values match the database credentials in cPanel.

 

3. Confirm Database Host

  • Most Joomla installations use localhost.

  • On some servers, the host may be different (e.g., mysql.ruachost.com).

  • Check with ruachost.com support if unsure.

 

4. Test Database Connection

  • Use phpMyAdmin to log in with the same credentials.

  • If login fails, reset the password and update configuration.php.

 

5. Repair Database Tables

  1. In phpMyAdmin, select your Joomla database.

  2. Check all tables.

  3. From the dropdown, select Repair Table.

 

6. Enable Error Reporting

  1. Log in to Joomla Administrator (if accessible).

  2. Go to System → Global Configuration → Server tab.

  3. Set Error Reporting to Maximum.

  4. Reload the site to see detailed error messages.

 

Important Notes

  • Always back up your site and database before making changes.

  • Database connection errors are often caused by simple credential mismatches.

 
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution