3
0
Fork 0
forked from mirrors/nixpkgs

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
commit 07eaaf6c8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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