You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initially starting a n8n instance in Docker with a MySQL/MariaDB database backend, the initial setup fails on the database migrations that are being executed. Depending on the flavour (MySQL or MariaDB) and version (5.7, 8.0 or 8.4 for MySQL) the migration script fails on different points. Here are the last 3 lines of the migration script for each flavour:
MySQL 5.7.44:
Finished migration CreateTestRun1732549866705
Starting migration AddMockedNodesColumnToTestDefinition1733133775640
Migration "AddMockedNodesColumnToTestDefinition1733133775640" failed, error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('[]') NOT NULL' at line 1
Start the services by running docker compose up and watch the migrations start after the database has been set up (and n8n has already exited several times because of the database not being available, hence the restart: unless-stopped setting). The migrations will fail, no matter what database variant is being used.
Retry the docker compose up after changing the DATABASE_IMAGE value in the .env to either mysql:5.7, mysql:8.0, or mariadb:11.4.
Expected behavior
A running instance of n8n with a fully initialized database.
Operating System
N/A (Docker)
n8n Version
1.76.1
Node.js Version
N/A
Database
MySQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered:
I am not sure what the future of MySQL support looks like, I know we were planning to drop support for it and we have removed the options from our docs ready for this.
Is MySQL something you have to use or can you move to Postgres?
@Joffcom thanks for your quick response! Postres is not our preferred database of choice as we lack the administration skills. We'll give it a go nonetheless!
FYI: I assumed n8n still had proper MySQL support because of the information in the README for the image on Docker Hub. If the official documentation does not mention MySQL support, it might be good to remove it from that README as well.
Bug Description
Version tested: 1.76.1
When initially starting a n8n instance in Docker with a MySQL/MariaDB database backend, the initial setup fails on the database migrations that are being executed. Depending on the flavour (MySQL or MariaDB) and version (5.7, 8.0 or 8.4 for MySQL) the migration script fails on different points. Here are the last 3 lines of the migration script for each flavour:
MySQL 5.7.44:
MySQL 8.0.41:
MySQL 8.4.4:
MariaDB 10.11.10 and 11.4.4:
To Reproduce
Given the following docker compose file:
And the following .env file:
Start the services by running
docker compose up
and watch the migrations start after the database has been set up (and n8n has already exited several times because of the database not being available, hence therestart: unless-stopped
setting). The migrations will fail, no matter what database variant is being used.Retry the
docker compose up
after changing theDATABASE_IMAGE
value in the.env
to eithermysql:5.7
,mysql:8.0
, ormariadb:11.4
.Expected behavior
A running instance of n8n with a fully initialized database.
Operating System
N/A (Docker)
n8n Version
1.76.1
Node.js Version
N/A
Database
MySQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: