nixos/mysql: disable load pluginx auth_socket in mariadb
This commit is contained in:
parent
6ac9a9fcb4
commit
b8c8e810aa
@ -87,7 +87,6 @@ in
|
|||||||
datadir = /var/lib/mysql
|
datadir = /var/lib/mysql
|
||||||
bind-address = 127.0.0.1
|
bind-address = 127.0.0.1
|
||||||
port = 3336
|
port = 3336
|
||||||
plugin-load-add = auth_socket.so
|
|
||||||
|
|
||||||
!includedir /etc/mysql/conf.d/
|
!includedir /etc/mysql/conf.d/
|
||||||
''';
|
''';
|
||||||
@ -315,7 +314,6 @@ in
|
|||||||
datadir = cfg.dataDir;
|
datadir = cfg.dataDir;
|
||||||
bind-address = mkIf (cfg.bind != null) cfg.bind;
|
bind-address = mkIf (cfg.bind != null) cfg.bind;
|
||||||
port = cfg.port;
|
port = cfg.port;
|
||||||
plugin-load-add = optional (cfg.ensureUsers != []) "auth_socket.so";
|
|
||||||
}
|
}
|
||||||
(mkIf (cfg.replication.role == "master" || cfg.replication.role == "slave") {
|
(mkIf (cfg.replication.role == "master" || cfg.replication.role == "slave") {
|
||||||
log-bin = "mysql-bin-${toString cfg.replication.serverId}";
|
log-bin = "mysql-bin-${toString cfg.replication.serverId}";
|
||||||
@ -323,6 +321,9 @@ in
|
|||||||
relay-log = "mysql-relay-bin";
|
relay-log = "mysql-relay-bin";
|
||||||
server-id = cfg.replication.serverId;
|
server-id = cfg.replication.serverId;
|
||||||
})
|
})
|
||||||
|
(mkIf (!isMariaDB) {
|
||||||
|
plugin-load-add = optional (cfg.ensureUsers != []) "auth_socket.so";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.mysql = {
|
users.users.mysql = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user