• 24x7 live wp Support

  • Abigail November 8, 2017
    How-To-Solve-Error-Establishing-A-Database-Connection-In-Wordpress

    Error Establishing in Database Connection means that WordPress cannot find this database.This article helps you to understand How To Solve Error Establishing A Database Connection in WordPress.
    This article consists of following topics:

    • Why I need so?
    • How can do it myself without impacting websites?
    • Difficulty level [Easy, Medium, Hard].
    • Total time consumed.

    Why i need to do so?

     “Error Establishing Database Connection.” This means that for some reason the PHP code was unable to connect with your MySQL database .That’s why this error is occur and you see  blank page. If you can’t connect to your database, there’s no way to know what to display; no information about your website is available.You can easily determine this issue.

    What Causes This Error?

    when Error Establishing Database Connection error is occurs this screen show on your browser .

    Database Connection Error
    There are many reasons why yError Establishing A Database Connection In WordPress, there are many reasons given below:

    1. Your login credentials for your database are wrong.
    2. Your database is corrupted.
    3. The server that hosts your database is down.

    A.Check your details in wp-config.php file

    1:Log in your cPpanal
    Step1: type your user name
    Step2: Type your Password
    Step3: Click on Log in

    cPanal Login

    Step3: Go to files and click on File Manager

    cPanal
    Check your database login settings in wp-config:
    Step1: Click on your website folder
    Step2: Right click on wp-config.php file

    File Manager

    Step3: Click on code edit

    wp-config File
    Edit wp-config.php file

    Step1: check your details
    As you can see, there are four  information WordPress needs to access your database:

    1. The name of the database (“DB_NAME”)
    2. The login username (“DB_USER”)
    3. The login password (“DB_PASSWORD”)
    4. The database host (“DB_HOST”)

    Step2: If there is any error then correct the infiormation
    Step3: Click on save change

    Edit config file

    Refresh your browser , and your website running normally.

    Site

    C. Difficulty Level

    Medium

    D. Total Time Consume

    45 Minutes

    E. Related Plugins

    No
    Summary
    How To Solve Error Establishing A Database Connection In WordPress?
    Article Name
    How To Solve Error Establishing A Database Connection In WordPress?
    Description
     “Error Establishing Database Connection." This means that for some reason the PHP code was unable to connect with your MySQL database .That’s why this error is occur and you see  blank page. If you can’t connect to your database, there’s no way to know what to display; no information about your website is available.
    Author
    Publisher Name
    WordPress Support
    Publisher Logo

    Leave a comment.

    Your email address will not be published. Required fields are marked*

    error: Content is protected !!