Changing from Sqlite to MySQL #30890
Replies: 1 comment
-
Shalom @giliredbaron 🌟 I'm here to help you with your Superset migration to MySQL. Let's work together to figure this out! To convert Superset to use MySQL instead of SQLite, you should update the
This change will configure Superset to use MySQL as the metadata database instead of SQLite. Make sure to replace |
Beta Was this translation helpful? Give feedback.
-
Hi all
I'm trying to migrate my local install of superset (that comes by default with sqlite) to MySQL.
I was trying to convert the sqlite data like so:
sqlite3 .superset/superset.db .dump > superset_statements.sql
But, some of the values in the generated script are faulty, like this:
CREATE TABLE IF NOT EXISTS "query" ( id INTEGER NOT NULL, client_id VARCHAR(11) NOT NULL, database_id INTEGER NOT NULL, tmp_table_name VARCHAR(256), tab_name VARCHAR(256), sql_editor_id VARCHAR(256), user_id INTEGER, status VARCHAR(16), schema VARCHAR(256),
So, CREATE TABLE IF NOT EXISTS "query" is wrong because it needs to be like this:
CREATE TABLE IF NOT EXISTS
query
And
schema VARCHAR(256),
Scema is a preserved word so I need to change it to
schema
VARCHAR(256),`It looks like this is a deep rabbit hole (there are so many of those, also the generated script creates insert values to tables that are created later on this script - this is not working :) )
Is there a better way to install (even from scratch) OR convert superset to use MySQL?
Thanks
Gili
Beta Was this translation helpful? Give feedback.
All reactions