I wanted to make a local copy of an online blog. So I first exported the database and the WP content.
In Mamp I created a second database and imported the tables of the backupped database into that one. Then I did a new WP install in a new folder. When I started that up I entered the correct database name, user and password. After creating the new wp-config file and clicking continue it said I already had a wordpress installation.
I already did a wordpress install once for the first site. But as I created a second database and did a fresh WP install in a new folder, that shouldn’t matter?
Probably did something wrong but don’t know what. Basically it’s like moving a WP site to a new hosting provider.