A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

Basically, this means your slave is now out of date with the master, and it's going to keep being out of data until the slave is fully synced. You might have to start a new slave from scratch, and get that synced with the current state of the primary. This has been answered here before: https://forums.mysql.com/read.php?26,367180,367785#msg-367785


1

Never mind, Its possible, I have tested with this. But we have to make sure that if you have any PK, Unique key it should unique across your source databases(all 4).Or on the subscription database create the table without the constraints.


0

I found a way. Turns out, if your subscriber is a higher SQL version than the publisher this error will always get produced. A way around this is to add the subscription on the Subscriber instance instead of on the Publisher.


2

First, don't drop the table to do this. You have two better options: Use the MERGE command TRUNCATE the table before inserting, don't DROP and CREATE. The main limitation on the TRUNCATE...INSERT pattern is permissions, since a simple read or update permission grant will not allow for TRUNCATE. ALTER permission on the table is needed to use this command. ...


1

Yes, that is the idea. In the case of a replication conflict PostgreSQL has only two options: cancel the query delay the application of replicated changes. Setting max_standby_streaming_delay to -1 will delay replication indefinitely long. There are ways to reduce replication conflicts: Set hot_standby_feedback = on to remove replication conflicts caused ...


0

It seems that setting the position to 4 (master_log_pos=4) has reignited the sync.


0

Since your other slaves are running fine, this is possibly caused by user error. Some row was probably changed on this slave manually, which was meant to be changed on the master. The slave then encounters something like duplicate key constraint 10 times and fails. If the transaction causing this error is slow or it effects a lot of rows combined with ROW ...


1

In my case, I had the same error message. My error was that I had installed my new server (Windows 2019 Std) in English (Canada) and that when I updated the Snapshot via the agent, I always had the error "An unspecified error had occurred in the native SQL Server connection component. ". To correct the problem, I reinstalled my server in English (United ...


3

Do you think this plan will work? Without a lot of headaches, no I don't. Most times I have witnessed an attempt to use replication for DR it has failed. Every time I've witnessed an attempt to 'fail-back' from a replication 'failover' it has failed miserably. As you've mentioned, replication is not a HA/DR technology and shouldn't be used as such. If you'...


-1

Make sure that you use same data inside databases between hosts, Make mysqldump from master and import all data to slave, after I configured slave and it works.


0

If you reduce wal_level to replica, and you have a logical replication slot (as is needed for logical replication), the server will refuse to restart. This is because wal_level = logical is required by logical decoding and logical replication. If you first drop the subscription and the publication, thereby removing logical replication, the replication slot ...


0

pg_rewind connects to the new master and locates the latest checkpoint it shares with the old master. Then it examines local WAL to find all blocks that have been modified since and copies these blocks from the new master. So the procedure is slow if promotion happened a long time ago, so pg_rewind has to dig through many WAL files or many blocks have ...


0

I found the problem. It is my authentication method problem. I changed my account and it is resolved.


1

You could create a function-based indeed on the sdo_geometry column in this view. This might help the query speed. If you can't create an MV (have you tried?), create a table (create table as select...), then write a procedure that executes a MERGE from the view in to the table, then schedule it to execute every X minutes using dbms_job or dbms_scheduler. ...


0

Yes, you will need an existing replication environment since ProxySQL is a proxy service. It can work with Percona XtraDB Cluster, MariaDB Galera cluster or MySQL InnoDB Cluster as well.


0

You can use AWS Database Migration Services (DMS) to replicate full and/or change data to another system (such as S3 or a PostgreSQL database running on-premises or on EC2) make sure use DMS v3.3 if you use PG 10+ create a new pg parameter group. set: rds.logical_replication=1 save. modify the RDS instance to use that parameter group, apply changes reboot ...


0

Glad previous answer was not deleted, it pointed me in the right direction. I have a master-master environment set up in VirtualBox with SSL enabled. At master1 when I ran CHANGE MASTER TO MASTER_HOST, I did not set MASTER_SSL=1. However, replication was working. At master2 I was getting the following err msg. After RESET SLAVE, I ran the CHANGE MASTER TO ...


Top 50 recent answers are included