| 74 | |
| 75 | 10. create database and table need ref [https://lefred.be/content/mysql-group-replication-and-table-design/ here] |
| 76 | * InnoDB Storage Engine: data must be stored in the InnoDB transactional storage engine. |
| 77 | * Primary Keys: every table that is to be replicated by the group must have an explicit primary key defined. |
| 78 | |
| 79 | {{{ |
| 80 | mysql> create table test_tbl_nopk_uniq_notnull (id int not null unique key, name varchar(10)); |
| 81 | mysql> insert into test_tbl_nopk_uniq_notnull values (1,'lefred'); |
| 82 | Query OK, 1 row affected (0.01 sec) |
| 83 | }}} |