Export the mysql database for your WordPress to an .sql file. Unzip it (if applicable) to a convenient place on your computer.
NOTE: If you're using phpMyAdmin to do this export (recommended), make sure that you do a "custom" export, scroll down to "Object creation options," and check these two boxes:
[x] Add CREATE DATABASE / USE statement
[x] Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT statement
Open your .sql file in your preferred text editor. Make the following four changes.