Error establishing a database connection After Copy localhost wordpress site (with site url directly to hosting server’s url before copy)
Read http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change You’ve only moved the PHP files. That is only part of the process. Migrating the databse would mean: Create a database, if there isn’t one already Move the database from your local server to the remote one. Edit/alter key values in the database The same wp-config editing trick used here will get you … Read more