services.mysql.dataDir
The data directory for MySQL.
If left as the default value of /var/lib/mysql this directory will automatically be created before the MySQL
server starts, otherwise you are responsible for ensuring the directory exists with appropriate ownership and permissions.
- Type
absolute path- Default
"/var/lib/mysql"- Example
"/var/lib/mysql"- Declared
- <nixpkgs/nixos/modules/services/databases/mysql.nix>