• Resolved SapphireGraphics

    (@sapphiregraphics)


    My site is missing due to a Error establishing a database connection

    I contacted my host provider and they said I am missing my wp-config php file and that I should contact ww.wp.xz.cn

    Can anyone help me repair this problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter SapphireGraphics

    (@sapphiregraphics)

    Your site shows 500 Internal Server Error. Please contact your host.

    I contacted my host provider and they said I am missing my wp-config php file and that I should contact ww.wp.xz.cn

    If your hosting company gave the above suggestion, you can upload a freshly downloaded wp-config php file with your DB name, DB host name, DB user name, and DB password filled in and see if the problem persists.

    SapphireGraphics,
    I don’t know if your host actually checked if the file was there or just said that based on the error your getting ( Unable to connect to database ). If you know how to use a FTP client you can login in and check to see if the files exists. Your hosting panel might also have a file browser / editor you can use to check. The file will be in the root directory WordPress is installed in. If this is a new installation use the file wp-config-sample.php and add your database username and password and save the file as wp-config.php.

    If the file is there and you have already added your database credentials find the line:

    define( 'WP_DEBUG', false); and change false to true then re save.

    This will give you a more specific error telling you either your username or password is wrong or it can’t connect to the database host. This will determine the next steps that need to be taken.

    Thread Starter SapphireGraphics

    (@sapphiregraphics)

    Thank you so much for your help. My password was not matching. This problem has been corrected and my site is running again.

    Thank you!

    Glad to see that you could solve the problem!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Site missing due to error’ is closed to new replies.