Questions tagged [mysql-replication]

Replication enables data from one MySQL database server (the master) to be replicated to one or more MySQL database servers (the slaves).

Replication enables data from one MySQL database server (the master) to be replicated to one or more MySQL database servers (the slaves). Replication is asynchronous - slaves need not be connected permanently to receive updates from the master. This means that updates can occur over long-distance connections and even over temporary or intermittent connections such as a dial-up service. Depending on the configuration, you can replicate all databases, selected databases, or even selected tables within a database.

The target uses for replication in MySQL include:

  • Scale-out solutions - spreading the load among multiple slaves to improve performance. In this environment, all writes and updates must take place on the master server. Reads, however, may take place on one or more slaves. This model can improve the performance of writes (since the master is dedicated to updates), while dramatically increasing read speed across an increasing number of slaves.

  • Data security - because data is replicated to the slave, and the slave can pause the replication process, it is possible to run backup services on the slave without corrupting the corresponding master data.

  • Analytics - live data can be created on the master, while the analysis of the information can take place on the slave without affecting the performance of the master.

  • Long-distance data distribution - if a branch office would like to work with a copy of your main data, you can use replication to create a local copy of the data for their use without requiring permanent access to the master.

514 questions
0
votes
1 answer

Failed mysql replication

After we realize that our backups (dump) where taking too long, and an incident where the VPS provider shutdown our database vps for 2 hours, we decided to try replication (not going to remove backup, just do the backup in the replication server). I…
user587541
0
votes
1 answer

Replicate_Do_DB and Replicate_Wild_Do_Table - Replication does not work

I have been tasked to set replication up on a slave host. The master database is a "data store" where tables are dropped, recreated, and reloaded on a daily basis. My initial setup of the slave host worked fine by replication was always days behind…
A B
  • 1
0
votes
1 answer

MySQL 5.7 on Ubuntu 18.04.4 LTS does not recognize any configuration-variable

I am trying to create a master-master replication between two databases, one being an RDS instance with MySQL 5.6.44 on AWS the other one being on an Ubuntu-Server running MySQL 5.7 (I was unable to install 5.6) by creating a slave replication in…
user540468
  • 152
  • 1
  • 2
  • 10
0
votes
0 answers

Best mysql database architecture for a worldwide project

I would like to know your opinion about how to build the best database architecture posible. This is a website, let's say it is a forum, with traffic from everywhere around the globe. I'm trying to figure out the best way, because now we have…
John
  • 1
0
votes
1 answer

MySQL 8.0 replica going out of sync with error on executing statements

I have this configuration: Master running MySQL 5.5 with log file format: STATEMENT Slave running MySQL 8.0 - connected to (1) master. Log file format: ROW Another Slave running MySQL 8.0 - connected to (2) the first slave. Log format: ROW Main…
aviv
  • 167
  • 1
  • 1
  • 9
0
votes
0 answers

MySQL master slave replication issue

I have enabled filtered replication in MySQL. Only one table is being replicated from master to slave using replicate-do-table option and the replication is going smooth. Today morning I have noticed that a newly created procedure in master got…
DBAJJ
  • 1
-1
votes
1 answer

Website .htaccess redirection loop issue

I have my news website hosted in US and it is being managed by cloudfare. I have placed one local server in Nepal as well for faster serving of web pages. MYSql replication and web content sync is being done. My requirement: As news editor uploads…
-1
votes
1 answer

MySQL: Why would I have to repeatedly FLUSH HOSTS after a few minutes?

I have a web system setup in AWS that we are building up to migrate an existing web app to. I have 2 VPCs: 1 for web and 1 for data. These VPCs are Peered and Security Groups are setup to isolate each VPCs subnet. At the moment, there is an EC2…
Jon B
  • 149
  • 7
-1
votes
6 answers

backing up large database with large amount of data in a small time limit then restoring it within a small time of limit?

Backing up large database with large amount of data in a small time limit then restoring it within a small time of limit? Any useful ideas?
hkshambesh
  • 63
  • 3
  • 7
-1
votes
1 answer

mysqlhotcopy — A Database Backup Program

is the mysqlhotcopy — A Database Backup Program best way to backup the large data in mySQL??
hkshambesh
  • 63
  • 3
  • 7
-1
votes
1 answer

MySQL table only replication (Master->Slave)

I've set up two servers (one master and one slave db). I want to synchronize one single table of a whole database live (or with a delay of up to 5 minutes) in only one direction. I wanted to try the DB replication in total first, but after setup…
kentor
  • 143
  • 1
  • 4
  • 10
-1
votes
1 answer

MySQL - data inside vm on shared storage?

I'm planning on moving all my VMs to shared storage, and I have a question about how to deal with a MySQL VM: Currently the size of the VM image is 100GB, where most of the space is taken up by the MySQL data. I feel there are two options when…
James
  • 325
  • 2
  • 10
  • 22
-1
votes
1 answer

Mysql MariaDB replication broken

I have a primary DB and two replicates. replicate1 became corrupted when the linux server was rebooted without stopping mysqld. I want to load replicate1 with a dump I've taken from replicate2 with the command mysqldump --master-data…
-1
votes
1 answer

MySQL won't start if I set the log_bin

[mysqld] datadir=/db_vol/datadir socket=/var/lib/mysql/mysql.sock port=3306 server_id=1 log-bin=/db_vol/log/mysql-bin.log binlog-do-db=mydb When I try to start MySQL, I get an error that says MySQL Daemon failed to start.. If I comment out the…
Shamoon
  • 901
  • 4
  • 14
  • 22
-2
votes
2 answers

how to use mylvmbackup

any useful tips or easiest way
hkshambesh
  • 63
  • 3
  • 7
1 2 3
34
35