Fully Managed Linux Hosting

Recent Articles

Closing The Open Source Model Of MySQL
Okay, I didn't really want to write about Sun again today, but Simon has an interesting post about the "Sun Model" for open source business. Simon states that the model boils down to: "1. remove barriers to software...

SQL Loyalty And Competition
MySQL's Kaj Arno has an interesting post titled: "On Loyalty, Competition and Underdogs". Kaj starts with his son's list of reasons to stay with Bayern Munchen, the longtime favorite, or why to switch to TSV 1860...

Microsoft Adds New Feature To SQL Server With...
Microsoft has introduced a new managed self-service analysis capabilities code-named "Project Gemini," and self-service reporting in the next release of Microsoft SQL Server focused on Business Intelligence (BI) code...

Emulating LIMIT With MSSQL 2005
I don't like MSSQL, I prefer MySQL, but many times I have to deal with it at work. Lots of developers, including me and my co-worker Enrico, hate that Microsoft...

Microsoft Tool Reduces SQL Injection Attacks
Microsoft has introduced a new security filter for its Internet Information Service (IIS) Web server that is aimed at reducing SQL injection attacks.

Prevent SQL Injections With CFQUERYPARAM
If you haven't been using the cfqueryparam tag, chances are you had a baptism by fire this week. As you may have heard, lots of ColdFusion powered sites were...

SQL Injection Finder Tool
Running a SQL This handy newly updated tool from the Code Plex can help parse your IIS Logs looking for the standard command sequences that indicate someone


11.19.08

MySQL Replication

By Jay Fougere

Replication is a way to run several SQL servers so that all of them have a current copy of a database or databases. Keep in mind that replication is not the same as clustering and should not be confused as such, even though replication can solve many of the same problems that clustering resolves; albeit in a different manner.

Replication can be handled in one of a few ways, however the most popular methods use a master-slave, master-master or a circular relationship. A master-slave relationship is where the master machine receives writes to the database which are then replicated to the slaves with very small delays. There will be no changes made to the database(s) on the slave(s) directly as the slave(s) will receive all changes from the master.

A master-master relationship is a little misleading by name. In this situation all of the machines in the group act as both master and slave machines. This can be a bit trickier to set up than the traditional master-slave scenario. Master-master replication works well with two machines, however if your needs exceed the capabilities of two machines you may consider circular replication.

Lastly, you can set up circular replication, which is similar in some ways to both master-master and master-slave. The best way to describe circular replication is with an example.

Let's suppose you have three machines; Moe, Larry, and Curly. Moe runs MySQL as a slave to Larry but as master to Curly. Larry, as mentioned, is master to Moe but is a slave to Curly. That leaves Curly as master to Larry but slave to Moe. This way a change on any one machine replicates across all machines. See below:


Fully Managed Linux Hosting

What is Replication?

One thing to keep in mind when considering replication is the location of the individual servers. Servers should be in the same physical location and would ideally even be located on the same network switch. Due to the nature of the Iinternet I cannot recommend trying to replicate over the internet and I would not even consider it unless the database in question is a very low volume database with regard to write transactions.

Continue reading this article.


About the Author:
Jay Fougere is the IT manager for the iEntry network. He also writes occasional articles. If you have any IT questions, please direct them to Jay@ientry.com.
SQLproNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
SQLproNews.com WirelessProNews.com
CProgrammingTrends.com SysAdminNews.com


About SQLproNews
SQLproNews is a collection of up to date tutorials and insightful articles designed to help SQL users of any skill level implement successful SQL systems and practices. SQL Strategies and Tactics for Business




-- SQLProNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2008 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

advertising info | news headlines | free newsletters | comments/feedback | submit article


SQL Strategies and Tactics for Business SQLproNews News Archives About Us Feedback SQLproNews Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact