How many times happens that, after developing a WordPress website on you local environment, after publishing the new shining website to live, something is broken!?!
What is that? Well, after building all the structure, articles etc on localhost (or anywhere else) nothing works?
Yes, this is due to a Site Address reference stored into the database. Actually, there are really many references to http://localhost/ and changing everything by hand is just a nightmare. Just think about all the internal links between posts / articles, images and so on.