hi Cocotu,
you’ve probably solved this by now but if you haven’t, I had the same problem and found the solution here:
https://tauraz.wordpress.com/tag/wordpress-redirect-localhost/
the wp-options table holds the redirect info, so you need to keep the wp-options table on your server wp database and import every table(except wp-options) from your local wp database.
TJ