Today’s article is about the first two restrictions in the requirements page of the manual:
- InnoDB Storage Engine: data must be stored in the InnoDB transactional storage engine.
- Primary Keys: every table that is to be replicated by the group must have an explicit primary key defined.
So the first requirement is easy to check by a simple query that list all the non InnoDB tables:
SELECT table_schema, table_name, engine, table_rows, (index_length+data_length)/1024/1024 AS sizeMB FROM information_schema.tables WHERE engine != 'innodb' AND table_schema NOT IN ('information_schema', 'mysql', 'performance_schema');
The second one is a bit more tricky. Let me show you first how Group Replication behaves:
Case 1: no keys
Let’s create a table with no …
[Read more]