show variables 会存在数据被截断的问题:

 mysql show global variables字符超1024会被截断

 

 select 全局变量没有问题

 mysql show global variables字符超1024会被截断

 

 

官网解释:https://dev.mysql.com/doc/refman/5.6/en/variables-table.html

The VARIABLE_VALUE column for each of these tables is defined as VARCHAR(1024). For variables with very long values that are not completely displayed, use select as a workaround. 

 

所以如果要写一些检测脚本,尽量用select 变量来查询,避免发生误判。

 

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2022-02-05
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
相关资源
相似解决方案