From ff556ebfd96bc54deaef45574d0c79f58513aed3 Mon Sep 17 00:00:00 2001 From: "Guilherme A. Girardi" Date: Mon, 10 Feb 2020 13:27:58 -0300 Subject: [PATCH] MySQL added in database.md --- docs/database.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/database.md b/docs/database.md index e55669c29..4603f7f2a 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.