I have installed a local instance with a connection to my MySQL database.
When I want to activate the data model cache, I get the message "Lack permission to create table in schema metabase_cache_5e4bf_2".
When I look at the logs, I get this message:
INFO metabase.driver.mysql.ddl Step :persist.check/create-schema was successful for db WordPress - Beautysane.com
WARN metabase.driver.mysql.ddl
java.sql.SQLTransientConnectionException: (conn=1382660) Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key' is set. Add a primary key to the table or unset this variable to avoid this message. Note that tables without a primary key can cause performance problems in row-based replication, so please consult your DBA before changing this setting.
How can I solve this problem ?
At the moment, my experience with Metabase is very slow without this option.
Okay, thanks, I hope the team finds a solution soon, it's a real shame.
Otherwise, do you know if it's possible to manually create the tables Metabase needs?
Even if it means adding a useless primary key in AUTO INCREMENT to keep Mysql happy?
build a task with python that does the following:
2.1) drop the current table (materialized view) you created before
2.1) selects the table you want to materialize and save it with a special name
tells Metabase to go and fetch this new table with the Notify