Error establishing a database connection when migrating site to localhost

Did you change your database settings in wp_config.php and copy your database to your local machine? You’ll also need to use a text editor to search a dump of your database for any URLs pointing to the live site before importing it locally if you haven’t done so already.

Leave a Comment