Rechercher dans le manuel MySQL

26.12.13.1 Performance Schema persisted_variables Table

The persisted_variables table provides an SQL interface to the mysqld-auto.cnf file that stores persisted global system variable settings, enabling the file contents to be inspected at runtime using SELECT statements. Variables are persisted using SET PERSIST or PERSIST_ONLY statements; see Section 13.7.5.1, “SET Syntax for Variable Assignment”. The table contains a row for each persisted system variable in the file. Variables not persisted do not appear in the table.

For information about persisted system variables, see Section 13.7.5.1, “SET Syntax for Variable Assignment”.

Suppose that mysqld-auto.cnf looks like this (slightly reformatted):

{
  "Version": 1,
  "mysql_server": {
    "max_connections": {
      "Value": "1000",
      "Metadata": {
        "Timestamp": 1.519921706e+15,
        "User": "root",
        "Host": "localhost"
      }
    },
    "autocommit": {
      "Value": "ON",
      "Metadata": {
        "Timestamp": 1.519921707e+15,
        "User": "root",
        "Host": "localhost"
      }
    }
  }
}

Then persisted_variables has these contents:

  1. mysql> SELECT * FROM performance_schema.persisted_variables;
  2. +-----------------+----------------+
  3. | VARIABLE_NAME   | VARIABLE_VALUE |
  4. +-----------------+----------------+
  5. | autocommit      | ON             |
  6. | max_connections | 1000           |
  7. +-----------------+----------------+

persisted_variables has these columns:

  • VARIABLE_NAME

    The variable name listed in mysqld-auto.cnf.

  • VARIABLE_VALUE

    The value listed for the variable in mysqld-auto.cnf.

persisted_variables has these indexes:

  • Primary key on (VARIABLE_NAME)

TRUNCATE TABLE is not permitted for the persisted_variables table.


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-persisted-variables-table.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut