Replies: 0
Hello
I have faced problem with Mailter in context of moving database into Percona XtraDB Cluster – https://www.percona.com/doc/kubernetes-operator-for-pxc/kubernetes.html
The thing is PXC have “validator” https://www.percona.com/doc/percona-xtradb-cluster/LATEST/features/pxc-strict-mode.html
Two tables have problem:
– mailster_actions
– mailster_subscriber_meta
Error message when I’m import DB in new PXC mysql cluster:
Percona-XtraDB-Cluster prohibits use of DML command on a table (userdb.wp_mailster_actions) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER
Tables
CREATE TABLE wp_mailster_actions (
subscriber_id bigint(20) unsigned DEFAULT NULL,
campaign_id bigint(20) unsigned DEFAULT NULL,
timestamp int(11) unsigned NOT NULL DEFAULT ‘0’,
count int(11) unsigned NOT NULL DEFAULT ‘0’,
type tinyint(1) NOT NULL DEFAULT ‘0’,
link_id bigint(20) unsigned NOT NULL DEFAULT ‘0’,
UNIQUE KEY id (subscriber_id,campaign_id,type,link_id),
KEY subscriber_id (subscriber_id),
KEY campaign_id (campaign_id),
KEY type (type)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLEwp_mailster_subscriber_meta` (
subscriber_id bigint(20) unsigned DEFAULT NULL,
campaign_id bigint(20) unsigned NOT NULL,
meta_key varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
meta_value longtext COLLATE utf8mb4_unicode_ci NOT NULL,
UNIQUE KEY id (subscriber_id,campaign_id,meta_key),
KEY subscriber_id (subscriber_id),
KEY campaign_id (campaign_id),
KEY meta_key (meta_key)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;`
It is possible to solve this problem?
Thank you in advance
WP 5.5.3 WP mail SMTP 2.5.1