I'm not sure why but when i just want to create a copy of a site that i'm working on in MAMP, that say i just downloaded from the web. I just copy the same wp-config file from another local version that i've been working on.
But when i try to go to that new htdocs directory (which is essentially just a copy of the old one) it doesn't recognize the db.
Can anyone see why this might be a problem or possibly warn me of other reasons why this would be a fail?
Here is my process, I'm using a hosted version because I have another team working on it. I prefer to work locally so what i do is
download the files and images through a plugin
Create a new server in MAMP (titled Site2)
copy the contents of the backup zip (that i just downloaded from my server) into my new local server (title Site2)
Update the config file to be exactly like the current version that I have on MAMP (Site1) and when I go to that site I'm able to get onto the correct first page but then when I go into other pages I re-direct to the Site1 interior pages
Could this be because I'm using the exact same wp-config file as Site1? Would this mean that with every copy or version of the site that I work on that I should created a new unique WP-config file? I realize that if I had worked with Git from the beginning this would be more manageable but I'm already in the site process
Updated to illustrate my point:
Currently in my wp-config file i have this:
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wp_site1'); /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password */ define('DB_PASSWORD', 'root'); /** MySQL hostname */ define('DB_HOST', 'localhost'); /** Database Charset to use in creating database tables. */ define('DB_CHARSET', 'utf8'); /** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', '');