10bet网址
MySQL性能模式
相关的文档10bet官方网站 下载这个摘录
PDF (Ltr)- 1.2 mb
PDF (A4)- 1.2 mb


10.14.1性能模式persisted_variables表

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表。