MySQL 8.0参考手册
MySQL 8.0发行说明
的persisted_variables
表提供了一个SQL接口mysqld-auto.cnf
文件存储持久化全球系统变量设置,使文件内容进行检查在运行时使用选择
语句。变量是坚持使用设置保存
或PERSIST_ONLY
语句;看到为变量赋值语法。连续表包含每个持久化系统变量的文件。变量不坚持不出现在榜单上。
坚持系统变量的信息,请参阅为变量赋值语法。
假设mysqld-auto.cnf
像这样(格式):
{“版本”:1、“mysql_server”: {" max_connections ":{“价值”:“1000”,“元数据”:{“时间戳”:1.519921706 e + 15,“用户”:“根”、“主机”:“localhost”}},“自动提交”:{“价值”:“在”,“元数据”:{“时间戳”:1.519921707 e + 15,“用户”:“根”、“主机”:“localhost”}}}}
然后persisted_variables
有这些内容:
从performance_schema.persisted_variables mysql > SELECT *;+ - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - + | VARIABLE_NAME | VARIABLE_VALUE | + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + |自动提交| | | max_connections | 1000 | + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
的persisted_variables
表有这些列:
VARIABLE_NAME
中列出的变量名
mysqld-auto.cnf
。VARIABLE_VALUE
列出的值的变量
mysqld-auto.cnf
。
persisted_variables
这些索引:
主键(
VARIABLE_NAME
)
截断表
是不允许的吗persisted_variables
表。