mysql> UPDATE performance_schema.setup_consumers SET ENABLED = 'OFF' WHERE NAME LIKE 'events_transactions%';
ERROR 1265 (01000): Data truncated for column 'ENABLED' at row 7
mysql> show create table performance_schema.setup_consumers \G
*************************** 1. row ***************************
Table: setup_consumers
Create Table: CREATE TABLE `setup_consumers` (
`NAME` varchar(64) NOT NULL,
`ENABLED` enum('YES','NO') NOT NULL
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
1 row in set (0.00 sec)
mysql> UPDATE performance_schema.setup_consumers SET ENABLED = 'NO' WHERE NAME LIKE 'events_transactions%';
ERROR 1265 (01000): Data truncated for column 'ENABLED' at row 7
mysql> show create table performance_schema.setup_consumers \G
*************************** 1. row ***************************
Table: setup_consumers
Create Table: CREATE TABLE `setup_consumers` (
`NAME` varchar(64) NOT NULL,
`ENABLED` enum('YES','NO') NOT NULL
) ENGINE=PERFORMANCE_SCHEMA DEFAULT CHARSET=utf8
1 row in set (0.00 sec)
原来ENABLED是个枚举类型,这里只允许YES,NO.
mysql> UPDATE performance_schema.setup_consumers SET ENABLED = 'NO' WHERE NAME LIKE 'events_transactions%';