How to Set up Master Slave Replication in MySQL: Hands-on!

How to Set up Master Slave Replication in MySQL: Hands-on!

CodingX

4 года назад

43,153 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Sakshi abrol
Sakshi abrol - 13.09.2023 09:21

hi i just want to ask you use same configuration file for both master and slave server ?

Ответить
Kirpal SherGill
Kirpal SherGill - 30.07.2023 21:57

Hello mate, I'm absolutely new to it. Let me start by first asking how to open two tabs and which Mysql are you writing this code on? thabks

Ответить
Bilal Majeed
Bilal Majeed - 18.05.2023 00:57

Thank you for wasting my 2 hours, I knew this, by your vocabulary but still I thought to follow along with you, such a shame.

Slave_IO_State: Connecting to source - you have this same issue but you didn't address it.
Slave_IO_Running: Connecting

THank you again.

Ответить
Mujaihid Ahmed
Mujaihid Ahmed - 21.02.2023 08:35

after final command the reply file say as not permission to do.. please help

Ответить
Ashiq Mumtaz
Ashiq Mumtaz - 12.01.2023 17:33

is there any way that we can set the slave's server-id by master?

Ответить
Olumide Michael
Olumide Michael - 12.10.2022 14:51

Thank you! this helped

Ответить
Pro Vlogger
Pro Vlogger - 22.06.2022 08:59

Can you explain performance tuning and query optimzation in mysql

Ответить
Harapriya Sahoo
Harapriya Sahoo - 28.03.2022 20:15

Great video and my doubt was correct the guy behind the video is an Odia… not from name but from pronunciation….

Ответить
ADITI DAS
ADITI DAS - 09.03.2022 23:19

Getting Slave_IO_Running in Connecting state, please suggest why? tried many times!! :(

Ответить
Amit Bhattacharyya
Amit Bhattacharyya - 12.12.2021 06:25

i have one question , if i read from master does the read operation shared between slaves or application has to connect each slave db separately, specifically for read.

Ответить
Edward Ferguson
Edward Ferguson - 25.11.2021 03:49

This video was very helpful. Thank you!

Ответить
ranvijay mehta
ranvijay mehta - 28.09.2021 06:00

Why Database created ? unnecessary new user will be confuse.

Ответить
Dave K
Dave K - 19.09.2021 11:43

Awesome tutorial, actually the only one which i came across that works. I really struggled with replication before this video. Thankyou

Ответить
Asim Khan
Asim Khan - 06.09.2021 14:34

i have setup Mysql Master slave replication, i checked the replication was working fine and today i have this error on SLAVE : Error 'Unknown database 'pgdb'' on query. Default database: 'pgdb'. Query: 'alter table pg_log add partition (partition p20211005 values less than ('2021-10-05'))'

Ответить
aeon zeon
aeon zeon - 23.07.2021 07:00

thanks sir i setup my linux to linux perfectly... sir ask for merge replication tutorials

Ответить
Veladi Sravankumar
Veladi Sravankumar - 01.07.2021 05:44

Thank you, actually I am looking about this concept.
My requirement is "Am going to setup Disaster recovery of Mysql for production. It means if any thing happens for my master database, I need to switch db from master to slave in application. To achieve this, I have setup 2 mysql instances in AWS(master) and GCP(slave)".Is it work bw 2 clouds ? and after setup successful this configuration, if any problem in slave will it effect to master ? (ex: If slave shutdown suddenly, should not effect to master db because it's main production).
Please provide your suggestions....Thanks in advance

Ответить
saurabh tiwari
saurabh tiwari - 11.06.2021 11:19

Plz help 🙏 I search on whole internet but i can't find any solution... after auditing mysql slave replication error 1032 occurs if you have any idea please guide me,i tried all skipping method but yet same error occur

Ответить
Paulous Studio
Paulous Studio - 28.04.2021 17:45

When I try to create the same database for slave, the shell throws back "Database already exists". Note i am running (testing) on a local machine.

Ответить
pandey umesh
pandey umesh - 19.04.2021 12:12

Hi Team,
Can any one suggest ..
How to change replication filter in multi source Replication ..
i.e.
Chainal-1 replicate DB1.table1,
Channel-2 replicate DB2.table2
Every chainal replicate spacific databases not all data bases ..

Ответить
Smaran n.s
Smaran n.s - 23.03.2021 12:29

i need to do it for another database now,
I tried to change the mysqld.cnf file and change the bin log db..
but when i check the show master status it stil shows the old db name.

Ответить
Smaran n.s
Smaran n.s - 22.03.2021 09:36

Good tutorial worked for me for an azure master-slave replication
Thanks

Ответить
Srinath Rao
Srinath Rao - 18.03.2021 07:24

I followed same instruction step by step... but after inserting a new row in master system is just hanging Its neither inserted nor showing the same record in Slave... Is there anything to do with port openening of mysql (3306)... i am checking out this in Azure , Ubuntu , 18.x . Please help.

Ответить
Dhiraj Kumar
Dhiraj Kumar - 13.03.2021 12:24

What need to mention in Connection string

Ответить
Rishabh Jain
Rishabh Jain - 29.01.2021 12:57

Hi, good tutorial. How to sync both servers so that any change is written to SLAVE also reflect to Master?

Ответить
Vikas kumar
Vikas kumar - 18.12.2020 22:30

please created same video on hindi language

Ответить
Tan Hoang
Tan Hoang - 18.12.2020 10:42

so how to create another server with an IP. Can you help me with that?

Ответить
Nexus
Nexus - 11.11.2020 13:05

Hi, sir just wanted to ask could this setup work for slave localhost and master VPS?

Ответить
priti kashyap
priti kashyap - 07.08.2020 14:05

Hi, sir have you any video to create mysql configuration file like inside this path - nano/etc/mysql/mysql.conf/mysqld ...
Actually i want to know how we can create this (mysql.conf and mysqld) file initially.

Ответить
Gagandeep Singh
Gagandeep Singh - 12.06.2020 08:56

Amazing. Great stuff! Always wanted to learn master slave.

Ответить