diff --git a/docs/database.md b/docs/database.md index e55669c294..4603f7f2aa 100644 --- a/docs/database.md +++ b/docs/database.md @@ -51,6 +51,30 @@ export DB_POSTGRESDB_PASSWORD=n8n n8n start ``` +## MySQL + +The compatibility with MySQL was tested, even so, it is advisable to observe the operation of the application with this DB, as it is a new option, recently added. If you spot any problems, feel free to submit a PR. + +To use MySQL as database you can provide the following environment variables: + - `DB_TYPE=mysqldb` + - `DB_MYSQLDB_DATABASE` (default: 'n8n') + - `DB_MYSQLDB_HOST` (default: 'localhost') + - `DB_MYSQLDB_PORT` (default: 3306) + - `DB_MYSQLDB_USER` (default: 'root') + - `DB_MYSQLDB_PASSWORD` (default: empty) + + +```bash +export DB_TYPE=postgresdb +export DB_MYSQLDB_DATABASE=n8n +export DB_MYSQLDB_HOST=mysqldb +export DB_MYSQLDB_PORT=3306 +export DB_MYSQLDB_USER=n8n +export DB_MYSQLDB_PASSWORD=n8n + +n8n start +``` + ## SQLite The default database which gets used if no other one is defined.