Merge pull request #49838 from dasJ/mysql-datadir

nixos/mysql: Explicitly set datadir in my.cnf
This commit is contained in:
Samuel Dionne-Riel
2018-11-16 19:21:01 +00:00
committed by GitHub

View File

@@ -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}"}