2020-09-11 22:25:27 +02:00
|
|
|
{ pkgs, lib, ... }: {
|
|
|
|
|
|
|
|
services.mysql = {
|
|
|
|
enable = true;
|
2020-09-19 21:02:46 +02:00
|
|
|
package = pkgs.mysql80;
|
2020-09-11 22:25:27 +02:00
|
|
|
initialScript = pkgs.writeText "initScript" ''
|
|
|
|
CREATE USER 'admin'@'%' IDENTIFIED BY 'admin';
|
|
|
|
GRANT ALL PRIVILEGES ON * . * TO 'admin'@'%';
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|