MySQL 8.0.19客户端的一个小变化

MySQL 8.0.19更新后,在交互模式下,默认启用了--binary-as-hex选项,导致二进制数据以十六进制显示。可以通过--skip-binary-as-hex关闭此行为。这一变化可能对习惯于ASCII展示的用户造成困扰。文章提及该选项自5.6.37版本引入,旨在提供更符合程序员习惯的二进制数据显示。
摘要由CSDN通过智能技术生成

不注意到这个变化的话,还挺折腾人的。

在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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值