MySQL Replication Duplicate Entry for Primary Key
160523 13:07:29 [ERROR] Slave SQL: Error 'Duplicate entry '914166' for key 'PRIMARY'' on query. Default database: 'zo_dev_20121216'. Query: 'UPDATE activity SET activity_type_id = 9, subject = 'Send...
View ArticleSplitting Snapshot files with MaxBCPThreads for Transactional Replication
I've just set up a publication, and I'm attempting to get the snapshot to apply faster. So far the Distribution Agent is respecting the MaxBCPThreads settings, but the Snapshot agent is not. I'm...
View ArticleSQL Server Service Broker with DML triggers
What I want to do: Client database (C) is SQL Server 2008, has schema X My database (D) is PostgreSQL 9.1, has schema Y I want to transfer data from specific tables in C to D in near real time. My...
View ArticleMySQL replication master port change
I have 4 servers running MySQL 5.6. A,B,C and D. A and B are Master and slave whose default port is 3306. C and D are running in non-default ports 3360. A and C are in Master-Master replication mode. C...
View ArticleCheck if Replication Enabled
What's the easiest way to check if replication is enabled in a SQL 2000, 2005, and 2008 compatible format? Don't need any status info...just to know if it's enabled for a DB. I need this because I want...
View ArticleHow to measure or estimate the streaming replication lag in Postgres 9.2
I've been asked to reverse engineer an app that uses postgresql in the back end. I can see that there is some database replica tion going on... based on my reading, I *think it's called streaming...
View ArticleHow 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 ArticleWhich error codes are safe for `slave_skip_errors` with MySQL Innodb
Does anyone know which error codes are safe to ignore during replication, meaning the slave will remain consistent with the master? For example [mysqld]...
View ArticleDownload the replication snapshot file using FTPS
I have two databases for two companies. Company A's database contains domain data. The other company is pulling the data using snapshot replication. We have used FTP to communicate: Created FTP server...
View Articlemysql master slave replication issue: Slave has read all relay log
Hi I have set up master:slave replication as per this guide and set the connection to work over ssh using this guide. The connection port is set up correctly - if i enter this command: mysql -h...
View ArticleHow to mirror a replicated database
Forgive me if this question has already been asked - I've hunted around, but can't find something that matches my situation. Say I have my Principle server (DB1), with a database Mir1. I set up...
View ArticleMySQL - Automatically Replicate structure-only from DB1 to DB2 on the same host?
I have two databases: - production - development Is there a way I could set a replication schema in order to replicate any structure changes from production to development? Preferably, structure only,...
View ArticleHow to configure multiple hot standbys in Postgres?
I currently have a postgres server setup with a hot standby. Is it possible to setup a second standby server? The purpose of this copy would be to provide real-time reporting off the database, not be a...
View ArticleIO thread error : 1595 (Relay log write failure: could not queue event from...
Slave status : Last_IO_Errno: 1595 Last_IO_Error: Relay log write failure: could not queue event from master Last_SQL_Errno: 0 from error log : [ERROR] Slave I/O for channel 'db12': Unexpected master's...
View ArticleIO thread error : 1595 (Relay log write failure: could not queue event from...
Slave status : Last_IO_Errno: 1595 Last_IO_Error: Relay log write failure: could not queue event from master Last_SQL_Errno: 0 from error log : [ERROR] Slave I/O for channel 'db12': Unexpected master's...
View ArticlePluggable Multi-Master Replication Support
I work on a web application that uses custom in-house key-value store. This web application also has custom in-house replication support which unfortunately has a lot of room for improvement and does...
View ArticleSQL Server 2008R2 - how to install replication components
I am trying to install the Replication components for SQL Server 2008R2, on technet website it says: On the computer that is running IIS, insert the SQL Server 2008 R2, SQL Server 2008, or SQL Server...
View ArticleMySQL - Force replication to statement for INSERT to a table to fire trigger...
We have a PROD DB which replicates into a slave DB using mixed replication. We want to add a trigger so that a row is added to our DW when a row is INSERTed into table_a (on master). The issue is that...
View Articlewsrep_sst_xtrabackup socat starts and stops right away
What I have done: I have restarted mysql on the JOINERNODE to apply some database settings including increasing the back_log and query_cache_size settings. What I am seeing: When I start mysql on the...
View ArticleSQL Server: Exporting data objects While exporting Database.
Say I want to copy a database from one place to another. I can use, e.g. Insert * From DB1 Into DB2 Where DB2 is the target database. Question: will this insert query also copy all the data objects:...
View Article