WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (2 posts)

  1. Prianshu
    Member
    Posted 1 year ago #

    I installed wordpress on http://shrpromotion.pk and after that i remove it and after that i installed a fresh copy

    Actually i deleted some files from Cpanel may be i deleted some wrong file ... not sure !

    but now when i type the above url it gives me this error ==> Error establishing a database connection

    What you suggest ?

  2. ClaytonJames
    Member
    Posted 1 year ago #

    shrpromotion.pk/wp-admin/

    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.

    • Are you sure you have the correct username and password?
    • Are you sure that you have typed the correct hostname?
    • Are you sure that the database server is running?

    If you're unsure what these terms mean you should probably contact your host.

    Some reference material: Editing wp-config.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags