That's called replication.
http://dev.mysql.com/doc/refman/5.0/en/replication.html tells how to do it for a MySQL database. If you use another database (such as MS SQL Server or Oracle) their manuals will tell you how to do it.
Kees
Hello, I run a technology blog called as techcloud7.com. I am facing one issue these days. I want to sync localhost database to the remote host's so that every single time when I made any changes to my site I don't need to update my database manually (.. Remote host everytime) or another Wordpress site. Please, advise me any good online solution or plugin.
Note: This post was edited by a forum moderator to remove promotional link on 07/05/2013 at 12:57 PM PT

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic