Multiple mySql servers with sync

I'm going to have a co-located server running linux/apache/mysql and a local server with the same setup. The local will not be attached to the WAN, and the co-located will be accessible through a webapp.

I'm planning on having a database that will hold user accounts with passwords. This will be used for the remote webapp, and also for a local software package. The problem is that if the remote server dies for some reason, or is in-accessible, the local software will have no database to check for credentials.

So I am planning on having a server on the local side that syncs with the remote mysql database, but I'm not quite sure of the best way to handle this. Should I be running queries on both simultaniously? Does mysql have a way of handling this type of redundancy? What's the most secure way? What's the fastest way?

>>>So I am planning on having a server on the local side that syncs with the remote mysql database, but I'm not quite sure of the best way to handle this. Should I be running queries on both simultaniously?

>>>So I am planning on having a server on the local side that syncs with the remote mysql database, but I'm not quite sure of the best way to handle this. Should I be running queries on both simultaniously? Does mysql have a way of handling this type of redundancy? What's the most secure way? What's the fastest way?

You should look into replication for mysql servers. http://dev.mysql.com/doc/refman/5.0/en/replication.html
Now, this is a secure and a reliable way of replicating the database over multiple servers. Now, this is probably not the fastest way as it will requie you to have a good understanding of replication and will require some efforts to set it up.

Both Easy and Powerful
How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php) Very easy. It has been described as "a programming language even my grandmother can use."
How powerful is PHP? http://en.wikiped…

Introduction
Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…

Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…