nixos/mysql: disable load pluginx auth_socket in mariadb

This commit is contained in:
Izorkin 2020-05-05 10:22:52 +03:00
parent 6ac9a9fcb4
commit b8c8e810aa

View file

@ -87,7 +87,6 @@ in
datadir = /var/lib/mysql
bind-address = 127.0.0.1
port = 3336
plugin-load-add = auth_socket.so
!includedir /etc/mysql/conf.d/
''';
@ -315,7 +314,6 @@ in
datadir = cfg.dataDir;
bind-address = mkIf (cfg.bind != null) cfg.bind;
port = cfg.port;
plugin-load-add = optional (cfg.ensureUsers != []) "auth_socket.so";
}
(mkIf (cfg.replication.role == "master" || cfg.replication.role == "slave") {
log-bin = "mysql-bin-${toString cfg.replication.serverId}";
@ -323,6 +321,9 @@ in
relay-log = "mysql-relay-bin";
server-id = cfg.replication.serverId;
})
(mkIf (!isMariaDB) {
plugin-load-add = optional (cfg.ensureUsers != []) "auth_socket.so";
})
];
users.users.mysql = {