Mysql master and slave replication
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
Welcome to this Mysql course.
If you learn how to setup an Oracle dataguard, then you'll be very pleased to enter in the replcation world of Mysql.
This process allow you to have a slave database replicated with the master one. As with Oracle, the master is the primary and the slave is the standby. The process is redo transport too... Funny no ?? So here, we'll simulate we have 2 mysql sites. In the first site we'll set the master database. We'll create an instance and we'll populate some tables. Then we'll start to setup the slave site, and the replication.
For this simulation, we'll use 2 virtual machines. Both virtual machines will have town' s names (Madrid and Barcelona). The course will cover all the steps as we'll start with a fresh install of red hat 6 (64bits) without any database.
During this course, you'll see the folowing key words:
Mysq ; Databases ; Replication ; Master ; Slave ; Binlogs ; Relaylog ; Indexlog ; Startup Script ; Environment script.
The material used in this course will be videos, slides and a txt file with all the commands and sql sentences. This course is about 3 hours.
The course is structured following this plan:
1 Installtion of the last version of Mysql in both servers
2 Creation of the user and group mysql, and environment files
3 Set up the Master init file
4 Set up the Slave init file
5 Export Master database to the slave site
6 Import the database and start Replication
7 Make some test of the correct replication and let see some usefull information about Master and Slave during the Replication
This course is a very usefull demonstration of making a Replication between 2 databases. After the main course, I'll upload some addons about manage more than one slave and we'll see an example of how set a Slave that is a Master at the same time. With all this knowledge, you'll be able to set a complexe structure of Mysql databases with one master, severals slaves and on or more of this slave can be a Master too. The course is designed to be easely ingested by all the people who wants to set this kind of structure.
In a few hours you'll have the demonstration done, and you will be able to offer this higth availability tool in your compagny.
So if you are looking for a good way to have online backup or an online site to garantee higth availability, then you need this course.
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
|Section 1: Mysql installation|
Topics of first block
Short presentation and Server preparationPreview
Installation of mysql server in Master and Slave sites
End of block 1
|Section 2: Replication settings|
Topics of block 2
Set the init file for replication in Master
Create replication user and directories structure
Dump the reference db from Master and import in Slave site
Set replication On, make some test
Explain all the init parameters
Some administration scripts
End of block 2
|Section 3: My Slave is a Master|
Topics of block 3
Create a new database "mysql2" in the Slave site
Declare mysql2 as slave of mysql1, check replication flow
Remove "mysql2" from mysql1 Master and attach it to Madrid Master
End of this course
ANEXES - Some txt file with command line
I was born in Spain and then travel to Paris where I start studying databases.
Then I go back to Spain and since 2005 I work exclusivly as Oracle dba. During several years I work in diferents environments and I touch a lot of Oracle technology. Here is part of this knowledge. Most recently, I work with Oracle 12c grid version, Oracle dataguard 11g and some other technologies as Rman o Oracle FlashBack.
Citare aqui unas de las operaciones que realize con exito:
- Mantenimiento de las instancias de Oracle
- Migración Grid control de 10G a 11G
- Migración de datos de un diskgroup a otro. (Cambiar discos de cabina)
- Copia de seguridad diseño de las políticas de recuperación de las bases de datos
- Instalación diseño e instalación de nuevo RAC entornos ASM ersión 11gR2
- Seguimiento con las herramientas de monitoring de OVO, Grid Control y Ganglia
- Creación de nuevas alarmas para OVO
- Restoración de bases de datos con RMAN duplicate
- Formación de un equipo de desarolladores con Oracle FlashBack. Simulamos perdidas de datos tras una release y recuperamos los datos perdidos gracias a FB