Announcement

Collapse
No announcement yet.

WordPress error :: Error establishing a database connection

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    adviseseo
    Junior Member

  • adviseseo
    replied
    Hi,

    I was updating new plugins on my WordPress blog. Now it Stuck in Maintenance Mode. Please help.

    Leave a comment:

  • Andyrson
    Junior Member

  • Andyrson
    replied

    Hey. I recently started getting this error and unfortunately, your suggestions haven't helped much. I also use employee monitoring software with window hosting.
    Can smth be affecting the wordpress?

    admin
    Administrator
    Last edited by admin; 03-13-2021, 06:19 AM.

    Leave a comment:

  • kumkum sharma
    Junior Member

  • kumkum sharma
    replied
    Hi,
    I checked your provided information is amazing and help lot of people.
    I just want to add if anyone is using cpanel and then he/she face "Error establishing a database connection" error in Wordpress website.
    For that you can follow below steps:
    - Login to cpanel
    - Click on MySQL databases
    - Give that user all the priviledges of data bases.
    - It is must to have priviledges to user, so check this and then try again to access.

    Leave a comment:

  • Marc_AccuWebHosting
    Member

  • WordPress error :: Error establishing a database connection

    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 .
    Marc_AccuWebHosting
    Member
    Last edited by Marc_AccuWebHosting; 06-09-2015, 10:01 PM.
Working...
X