MySQL MultiMaster Replication

September 28, 2011 mohancheema 0

You may know about the MySQL Cluster, which is a complex architecture to achieve high availability and performance. One of the advantages of MySQL Cluster is that each node is a peer to the others, whereas in a normal replicating system you have a master and many slaves, and applications must be careful to write only to the master.

No Picture

How to get MySQL table Column Names without MetaData

September 1, 2010 mohancheema 0

Often we need to list just the column name of the table without displaying the metadata. However, Until before MySQL 5.0 there was no way to get just the column names for any given table. Since MySQL 5.0 new table has been added information_schema. INFORMATION_SCHEMA provides access to database metadata.

No Picture

Blobbing Data With PHP and MySQL

June 8, 2010 mohancheema 0


Blobbing Data With PHP and MySQL

Databases can be used for storing large amounts of binary data, known as BLOB’s. These BLOB’s can store just about any type of data imaginable, including MS Word documents, GIF/JPEG images, PDF files, MP3’s, etc. In this article we will see how to create a binary file repository using PHP and MySQL that can store and retrieve several different file types.

No Picture

MySQL Database Replication HowTo

April 28, 2010 mohancheema 2

This tutorial describes how to set up database replication in MySQL. MySQL replication allows you to have an exact copy of a database from a master server on another server (slave), and all updates to the database on the master server are immediately replicated to the database on the slave server so that both databases are in sync. This is not a backup policy because an accidentally issued DELETE command will also be carried out on the slave; but replication can help protect against hardware failures though.