Cloned site not connecting to database - MAMP

by Kellen   Last Updated May 08, 2017 21:08 PM

First off, I'm a WordPress noob, so I apologize if there is an easy solution. I'm trying to get a live website working on my local MAMP environment. I've successfully cloned the git repo into the htdocs directory in MAMP. I also also created a database within phpmyadmin called 'landing'. Once the database was created, I imported a fresh copy of the production site's database.

After the database was set up, I renamed the wp-config-example.php file to wp-config.php and added the following properties:

define('DB_NAME', 'landing');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'root');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Nonetheless, when type in my local site's URL, it takes me to the WordPress install page. Am I missing a step? I've already double checked the database name, username, and password to make sure they are accurate.

Related Questions

Gutenberg showing blank page on local site

Updated August 17, 2018 01:08 AM

Wordpress loading very slow on MAMP Pro

Updated July 23, 2018 05:08 AM