MyNixOS website logo
option

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.
Declarations
Type
path
Example
"/var/lib/mysql"