I'm wanting to make a version of my blog on my home computer that I can work on offline. I set up LAMP on my computer (running Ubuntu) and copied all of my files from my server (000 Webhost) with FileZilla. But when I try to access my site on my localhost, I get "Error establishing a database connection." I think I've figured out that it has something to do with MySQL, but I'm really new to all this and could be way off. Any help would be greatly appreciated. Thanks in advance.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
Did you change your database settings in |
|||
|
|
|
Change below setting in wp-config.php for local settings.
Also you need to do find & replace for url (for e.g. Replace http://yourdomain.com to your localhost your_project_url in the dump sql file. then import that sql file to your_db_name Done...!!! |
|||
|
|