• Hello there.
    Well, I am being facing this issue from 2days back and I want to get myself out of this please..I know what am I suppose to do pretty well and I’ve being doing this for last past year. The problem is I am getting this error “Error establishing a database connection”. Well I have uploaded the wordpress 4.1 to ftp with 000webhost hosting and later after that, they asked for the Mysql database in wordpress. After inserting the data it says that the data you have entered is wrong.
    After that I changed the data from the ftp “wp-config-sample.php” directly and again the same error appeared.. I have done this so many times with different URL, downloaded the wordpress again. But still the same error came and I am sure I am entering the correct data bur doesn’t work 🙁 .

    I know that a big post but plzz help me out with this? Hope I would get some help
    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ask your hosting company – it’s likely on their end. BTW, WP doesn’t run well on free hosting – so you may need to move to a better host.

    https://wordpress.org/hosting/

    Hello,

    Please make sure to put the correct database information on the wp-config.php file. Or try renaming the file wp-config-sample.php to wp-config.php.

    “Error establishing a database connection”

    This is a very common error. It occurs when:

    • the database doesn’t exist
    • the content of the file wp-config.php is incorrect

    Please make use of the following codex page – http://codex.wordpress.org/Editing_wp-config.php#Default_wp-config-sample.php

    Refer this page and review every single step while configuring the wp-config.php file. You don’t need to go beyond the ‘security keys’ section. And note that one mistake, like a missing single quote, or an extra space (made by the keyboard spacebar) may cause such errors.

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

The topic ‘Error establishing a database connection’ is closed to new replies.