I'm working on a site for a client and wanted to clone the site to my localhost using WAMP.
I installed WP on WAMP, created a database in phpMyAdmin, created a user and password for that db and put that info in wp-config.php. I then downloaded the client's wp-content folder and replaced the freshly installed wp-content with the client's. Then I dropped the tables from the fresh install db and imported the client's db.
This didn't work, but then I saw that the client's database's prefix was db_ instead of wp_, so I changed it in wp-config.php. This seemed to work at first, but then I noticed there still weren't any posts even though the theme and customizations were there. Also, when I try logging in at localhost/nameofsite/wp-admin it redirects to the live site.
Any suggestions would be greatly appreciated. Hopefully I've given enough info, if not, let me know.