Design problems when exporting remote database for local development

Leave your database alone. Instead insert two lines in your wp-config.php on the local server:

define('WP_HOME','http://yourlocalserver/yoursite');
define('WP_SITEURL','http://yourlocalserver/yoursite');

The rest of what you are doing probably doesn’t matter and editing the SQL export is prone to error so you could easily be breaking things.