mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-11 04:15:36 +03:00
719 B
719 B
MySQL
MySQL is a popular open-source relational database management system (RDBMS).
{#start}
Getting started
# In `perSystem.process-compose.<name>`
{
services.mysql."mysql1".enable = true;
}
{#tips}
Tips & Tricks
{#port}
Use a different port
{
services.mysql."mysql1" = {
enable = true;
settings.mysqld.port = 3307;
};
}
{#schema}
Multiple .sql
files for schema
The schema
can be a path to a single .sql
file or a directory containing multiple .sql
files.
{
services.mysql."mysql1" = {
enable = true;
initialDatabases = [{ name = "test_database"; schema = ./test_schemas; }];
};
}