I've been tasked with taking over a word press project from 2012. I've been given all the source code, in addition to a database dump, and have installed MAMP.
First, I was getting the common "Error establishing a database connection". When I looked at
localhost:8888 I saw that the database was not found. Hence, I created a database from the name given in my
wp-config.php and all was well; or so I thought.
I'm stuck now between two situations:
1) I only create a database with the desired name and perform no import, at which point I receive a prompt to install WordPress giving me a barebones installation using none of the legacy code.
2) I import the the database dump into the appropriately named database, and nothing works.
localhost:8888 cannot be found and
wp-admin redirects to the live sites admin login.
Hopefully someone can help to figure out how to run this site locally so I can make the desired changes for the client.
Lastly, I should also note that I've attempted to update the
wp_options table to have the appropriate url of
http://localhost:8888 and still no luck. I've also tried visiting
http://localhost:8888 and none of these work either.
For posterity, as discussed in comments, this is an issue with MAMP setup and not WP configuration.