Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have some issues when I try to move it on other server. This are the steps:

  1. I go into my actual database through phpmyadmin, export the database.

  2. I copy the entire folder of my wordpress website from FTP, and paste it through FTP on my new host.

  3. I modify the wp-config.php with my new database details.

  4. Now I enter on my new host phpmyadmin I import the database that was created from my old host.

    And now when I enter on my website, I receive: Error establishing a database connection I really need some help with this. Thanks!

share|improve this question

closed as too localized by Chip Bennett, Wyck, kaiser, Chris_O, toscho Sep 30 '12 at 16:28

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Are you updating the site URL in the options table on the new db server? –  Brian Fegter Jan 30 '12 at 3:05

1 Answer 1

up vote 3 down vote accepted

Error establishing a database connection means a bad password, DB user, DB name or server location (usually localhost) in wp-config.php. Simple as that. Check and check again.

Editing wp-config.php « WordPress Codex

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.