MySQL 5.7.13 的一个BUG
时间:2021-07-01 10:21:17
帮助过:24人阅读
>
SHOW CREATE TABLE INFORMATION_SCHEMA.GLOBAL_VARIABLES\G
*************************** 1. row ***************************
Table: GLOBAL_VARIABLES
Create Table: CREATE TEMPORARY TABLE `GLOBAL_VARIABLES` (
`VARIABLE_NAME` varchar(64) NOT NULL DEFAULT
‘‘,
`VARIABLE_VALUE` varchar(1024
) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=
utf8
1 row
in set (0.00
sec)
When I set log_bin as follows:
log-bin=
??
It correctly sets the files on disk:
-rw-rw---- 1 rlowe 1278 174B Aug 2 08:34 ??.000001
-rw-rw---- 1 rlowe 1278 174B Aug 2 08:40 ??.000002
-rw-rw---- 1 rlowe 1278 151B Aug 2 08:53 ??.000003
-rw-rw---- 1 rlowe 1278 42B Aug 2 08:53
??.index
But I cannot accurately retrieve log_bin_basename:
> SHOW GLOBAL VARIABLES LIKE
‘log_bin_basename‘;
+------------------+-----------------------------------------------------------+
| Variable_name | Value |
+------------------+-----------------------------------------------------------+
| log_bin_basename | /Users/rlowe/sandboxes/rsandbox_mysql-5_6_23/master/data/ |
+------------------+-----------------------------------------------------------+
1 row
in set, 1 warning (0.00
sec)
>
SHOW WARNINGS;
+---------+------+---------------------------------------------------------------------------------+
| Level | Code | Message |
+---------+------+---------------------------------------------------------------------------------+
| Warning | 1366 | Incorrect string value:
‘\xF0\x9F\x92\xA9‘ for column
‘VARIABLE_VALUE‘ at row 1 |
+---------+------+---------------------------------------------------------------------------------+
1 row
in set (0.00
sec)
How to repeat:
Follow the steps above
Suggested fix:
Disallow utf8mb4 characters when setting log_bin OR change the character set of GLOBAL_VARIABLES
[2 Aug 16:20
] Umesh Umesh
Hello Lowe Ryan,
Thank you for the report.
Thanks,
Umesh
此致,敬礼
虽然没有什么用,但一种爽的感觉悠然而生,我想这就是程序员精神。
MySQL 5.7.13 的一个BUG
标签:配置 report warning ring and like style 环境 原因