不注意到这个变化的话,还挺折腾人的。
在MySQL 8.0.19 Release Notes里,有这么一段话:
When the mysql client operates in interactive mode, the --binary-as-hex option now is enabled by default. In addition, output from the status (or \s) command includes this line when the option is enabled implicitly or explicitly。To disable hexadecimal notation, use --skip-binary-as-hex (Bug #24432545)
意思是如果用mysql客户端进入交互模式,那么默认启用参数 --binary-as-hex,执行 status
或 \s
时能看到下面这样的标记:
[root@yejr.me]> \s
...
Binary data as: Hexadecimal
...
Threads: 1 Questions: 88...
可以在启动客户端时加上--skip-binary-as-hex关闭这个参数。
那么加上参数--binary-as-hex后,对交互式客户端会有什么影响呢?
先看下文档里的解释:
When this option is g