So I'm trying to clean up my development environment for my wordpress-based site. In the production site Wordpress database, there are thousands and thousands of references to the specific site URL.
For example, all of my permalinks have the full address. All of the images are referenced by their full address. All of the redirects are listed by their full address.
To clone my production database on a dev server, I have to:
- Mysqldump the whole wordpress database into an sql file.
- Search and replace all of the text for the production server domain name and replace with my dev server IP
- Import the modified sql file into my dev db.
I'm clearly not doing something right.....
Suggestions on how I can get back on the right track?