services.mysql.initialDatabases
List of database names and their initial schemas that should be used to create databases on the first startup of MySQL. The schema attribute is optional: If not specified, an empty database is created.
- Type
list of (submodule)- Default
[ ]- Example
[ { name = "foodatabase"; schema = ./foodatabase.sql; } { name = "bardatabase"; } ]- Declared
- <nixpkgs/nixos/modules/services/databases/mysql.nix>