mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-16 14:39:23 +03:00
nixos/mysql-replication: ignore system databases in binary log
This commit is contained in:
parent
f52700fc14
commit
da08b22e1a
1 changed files with 1 additions and 1 deletions
|
@ -320,6 +320,7 @@ in
|
||||||
log-bin-index = "mysql-bin-${toString cfg.replication.serverId}.index";
|
log-bin-index = "mysql-bin-${toString cfg.replication.serverId}.index";
|
||||||
relay-log = "mysql-relay-bin";
|
relay-log = "mysql-relay-bin";
|
||||||
server-id = cfg.replication.serverId;
|
server-id = cfg.replication.serverId;
|
||||||
|
binlog-ignore-db = [ "information_schema" "performance_schema" "mysql" ];
|
||||||
})
|
})
|
||||||
(mkIf (!isMariaDB) {
|
(mkIf (!isMariaDB) {
|
||||||
plugin-load-add = optional (cfg.ensureUsers != []) "auth_socket.so";
|
plugin-load-add = optional (cfg.ensureUsers != []) "auth_socket.so";
|
||||||
|
@ -445,7 +446,6 @@ in
|
||||||
|
|
||||||
( echo "stop slave;"
|
( echo "stop slave;"
|
||||||
echo "change master to master_host='${cfg.replication.masterHost}', master_user='${cfg.replication.masterUser}', master_password='${cfg.replication.masterPassword}';"
|
echo "change master to master_host='${cfg.replication.masterHost}', master_user='${cfg.replication.masterUser}', master_password='${cfg.replication.masterPassword}';"
|
||||||
echo "set global slave_exec_mode='IDEMPOTENT';"
|
|
||||||
echo "start slave;"
|
echo "start slave;"
|
||||||
) | ${mysql}/bin/mysql -u root -N
|
) | ${mysql}/bin/mysql -u root -N
|
||||||
''}
|
''}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue