Using docker mode, the docker file is
The database is mysql, tidb
When run the docker it throw the following DatabaseException:
[HY000] Referencing column ‘organization_id’ in foreign key constraint ‘fk_database_ref_organization_id’ are incompatible
What can I do?
Metabase does not officially support TiDB unless it’s fully compatible with MySQL 5.7+/MariaDB 10.2+ which is supported.
You can set MB_DB_AUTOMIGRATE=false and manually make the changes.
You’re likely seeing this issue https://github.com/pingcap/tidb/issues/14766
I have modified metabase 0.39.1 migrations to work with TiDB, check them out here: