Quantcast
Channel: StackExchange Replication Questions
Browsing all 17268 articles
Browse latest View live
↧

How do I synchronize rows in tables in remote databases?

I'm actually developing a synchronization tool in vb.net, I have two database that have on each table records field GUID, this field help to have the same PK on both database. On each record there is...

View Article


Using mysqldump to initialize slave database

I've facing an issue I don't really understand. I wan't to synchronize a slave MariaDB database to a master one. I try to use the mysqldump option --master-data=1 which is adding a "CHANGE MASTER TO"...

View Article


Recommendations on replicating an RDS PostgreSQL instance?

At my company, we are looking for alternatives to replicate a PostgreSQL instance into another database. In our scenario, we have a production PostgreSQL 9.5 database server, with new entries coming in...

View Article

Should I increase my key_buffer_size?

I have 4 node and database has InnoDB tables. my key_buffer_size is 128M. Should i increase it in my system? My innodb_buffer_pool_size is 75G and innodb_log_buffer_size = 256M. Mem: 96688 92580 4107 0...

View Article

Image may be NSFW.
Clik here to view.

How to restart the distributor agent of transactional replication?

After troubleshooting query time out error I would like to restart my distributor agent. So I go to my distributor server, in my distributor DB (called distribution_SA) I run the following query:...

View Article


MySQL replication lagging behind with log_slave_updates

I'm in the process of setting up replication in this topology: /--B A- \--C--D In order to achieve this I need log_slave_updates to be enabled on C, so D will also get the changes from A. C is a pretty...

View Article

Script to skip transaction in GTID based replication in MySQL?

In classical MySQL replication we can easily skip a transaction by command: Set sql_slave_skip_counter = 1 ; start slave; I have created a script and run it in a cronjob so that whenever slave stopped,...

View Article

Is it safe to delete mysql-bin files?

I have MM Replication in mysql, and I want to squeeze some free space in the box be deleting unnecessary files, I came across these mysql-bin files inside /var/db/mysql/ There are hundreds of those...

View Article


MySQL - Enabling Scheduled Event on Master and Slave Simultaneously

This may seem a bit strange, but I am trying to get a Scheduled Event to execute on both Master and Slave. I have two databases set up in a Master (A) to Master (B) replication environment. Master A is...

View Article


PostgreSQL streaming replication lag for synchronous standbys

We use PostgreSQL 9.5 in a master + synchronous hot-standby setup, i.e., using synchronous_commit = on and using synchronous_standby_names='*'. Consequently, the standby has sync_state = sync in the...

View Article

How to skip GTID transaction for a particular channel in MyQL?

We can skip a error in GTID based replication by following steps: STOP SLAVE; set GTID_NEXT='SERVER_UUID:LAST_TRANSACTION_NUMBER+1' ; BEGIN; COMMIT; SET GTID_NEXT="AUTOMATIC"; START SLAVE; But if a...

View Article

What kind of MySQL replication?

I'm working on an ERP project for an educational institution. They have two branch offices and we need to keep records not only for customers but also class calendars, class reservations for teachers....

View Article

Can I synchronize a MySQL database after the database instances have been...

I am working with a nonprofit organization who uses OpenEMR to provide health care to patients in a third-world country. OpenEMR stores its data in MySQL database. We host an instance of OpenEMR in our...

View Article


Write-lock a whole table during transaction

I need to perform a delicate operation to my table in which I will solely insert, delete and select upon all of my rows and no God may interfere with the table during this operation: the table will be...

View Article

Replication between two different sql versions

We have mirroring configured (Transactional replication) in our primary and secondary SQL servers which are running on Win2k8R2SP2 OS with 2008R2SP3 as the SQL version. So if we first upgrade the...

View Article


How to real time replicate a SQL Server DB without primary keys defined

Is there a way to replicate a SQL Server database real time without primary keys defined? I understand we can't use the SQL transactional replication because of lacking primary keys. Is there any 3rd...

View Article

How to Remedy Inconsistent MySQL Replication SYSDATE Value

When using master-master/master-slave replication in a MySQL environment, there's a possibility of creating inconsistent data when SQL statements use the sysdate instead of a hardcoded time in their...

View Article


Best way to set up cloudant backup/restore

I have just got to the point of having enough data in my cloudant DB that it would be an issue if I lost it so am now looking into what is a good/reliable(/free!) method of getting regular backups of...

View Article

How to send connections only to mysql master server from HAProxy

I am using HAProxy for load balancing with master-slave replication (1 master and 2 slaves). When master goes down i am utilizing mysql utilities to provide HA. Based on my observation when master went...

View Article

Mysql binlog filename keeps changing, preventing replication

First off, some versions: Centos 6, mysql 5.1 are what I'm stuck with using for now. So - The problem is that when I replicate using either of these methods: A: From the manual, unavailable via...

View Article
Browsing all 17268 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>