Announcement

Collapse
No announcement yet.

WordPress error :: Error establishing a database connection

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • WordPress error :: Error establishing a database connection

    WordPress Hosting on SSD Servers

    Problem Statement

    Could not access WordPress Website or WordPress dashboard.

    Error Statement

    Error establishing a database connection

    Solution

    Normally this error occurs when WordPress is unable to establish a database connection. There are many possible reasons why WordPress is unable to establish a database connection. Following are some possible suggestions to troubleshoot this problem.
    1. Make sure you are using correct WordPress database username and password in wp-config.php file. It is possible that login credentials are wrong or recently changed.
    2. Make sure that your database server is responsive and working fine.
    3. When you are unable to access WordPress website and Dashboard, most probably WordPress database is corrupted. You can repair WordPress database with few easy steps. You will have to add following lines in your wp-config.php file:
    define('WP_ALLOW_REPAIR', true);

    Once you have done that, browse the wp-admin again, it will repair the database .
    Last edited by Marc_AccuWebHosting; 06-09-2015, 11:01 PM.
Working...
X
Sign up for a News Letter Click here to sign up