mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
nixos/mysql: Explicitly set datadir in my.cnf
While this seems silly at first (it's already given as start parameter to mysqld), it seems like xtrabackup needs that sometimes. Without it, a Galera cluster cannot be run using the xtrabackup replication method.
This commit is contained in:
parent
fccfc775d1
commit
c7f5457aa6
@ -23,6 +23,7 @@ let
|
||||
''
|
||||
[mysqld]
|
||||
port = ${toString cfg.port}
|
||||
datadir = ${cfg.dataDir}
|
||||
${optionalString (cfg.bind != null) "bind-address = ${cfg.bind}" }
|
||||
${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "log-bin=mysql-bin"}
|
||||
${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "server-id = ${toString cfg.replication.serverId}"}
|
||||
|
Loading…
Reference in New Issue
Block a user