Rechercher dans le manuel MySQL
26.12.13.2 Performance Schema variables_info Table
The variables_info table shows,
for each system variable, the source from which it was most
recently set, and its range of values.
variables_info has these columns:
VARIABLE_NAMEThe variable name.
VARIABLE_SOURCEThe source from which the variable was most recently set:
COMMAND_LINEThe variable was set on the command line.
COMPILEDThe variable has its compiled-in default value.
COMPILEDis the value used for variables not set any other way.DYNAMICThe variable was set at runtime. This includes variables set within files specified using the
--init-fileoption.EXPLICITThe variable was set from an option file named with the
--defaults-fileoption.EXTRAThe variable was set from an option file named with the
--defaults-extra-fileoption.GLOBALThe variable was set from a global option file. This includes option files not covered by
EXPLICIT,EXTRA,LOGIN,PERSISTED,SERVER, orUSER.LOGINThe variable was set from a user-specific login path file (
~/.mylogin.cnf).PERSISTEDThe variable was set from a server-specific
mysqld-auto.cnfoption file. No row has this value if the server was started withpersisted_globals_loaddisabled.SERVERThe variable was set from a server-specific
option file. For details about how$MYSQL_HOME/my.cnfMYSQL_HOMEis set, see Section 4.2.7, “Using Option Files”.USERThe variable was set from a user-specific
~/.my.cnfoption file.
VARIABLE_PATHIf the variable was set from an option file,
VARIABLE_PATHis the path name of that file. Otherwise, the value is the empty string.MIN_VALUE,MAX_VALUEThe minimum and maximum permitted values for the variable. Both are 0 for variables that have no such values (that is, variables that are not numeric).
SET_TIMEThe time at which the variable was most recently set. The default is the time at which the server initialized global system variables during startup.
SET_USER,SET_HOSTThe user name and host name of the client user that most recently set the variable. If a client connects as
user17from hosthost34.example.comusing the account'user17'@'%.example.com,SET_USERandSET_HOSTwill beuser17andhost34.example.com, respectively. For proxy user connections, these values correspond to the external (proxy) user, not the proxied user against which privilege checking is performed. The default for each column is the empty string, indicating that the variable has not been set since server startup.
The variables_info table has
these indexes:
None
TRUNCATE TABLE is not permitted
for the variables_info table.
If a variable with a VARIABLE_SOURCE value
other than DYNAMIC is set at runtime,
VARIABLE_SOURCE becomes
DYNAMIC and
VARIABLE_PATH becomes the empty string.
A system variable that has only a session value (such as
debug_sync) cannot be set at
startup or persisted. For session-only system variables,
VARIABLE_SOURCE can be only
COMPILED or DYNAMIC.
If a system variable has an unexpected
VARIABLE_SOURCE value, consider your server
startup method. For example, mysqld_safe
reads option files and passes certain options it finds there
as part of the command line that it uses to start
mysqld. Consequently, some system variables
that you set in option files might display in
variables_info as
COMMAND_LINE, rather than as
GLOBAL or SERVER as you
might otherwise expect.
Some sample queries that use the
variables_info table, with
representive output:
Display variables set on the command line:
Display variables set from persistent storage:
Join
variables_infowith theglobal_variablestable to display the current values of persisted variables, together with their range of values:- mysql> SELECT
- VI.VARIABLE_NAME, GV.VARIABLE_VALUE,
- VI.MIN_VALUE,VI.MAX_VALUE
- ORDER BY VARIABLE_NAME;
- +--------------------------+----------------+-----------+-----------+
- | VARIABLE_NAME | VARIABLE_VALUE | MIN_VALUE | MAX_VALUE |
- +--------------------------+----------------+-----------+-----------+
- | max_connections | 200 | 1 | 100000 |
- | validate_password.policy | STRONG | 0 | 0 |
- +--------------------------+----------------+-----------+-----------+
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-variables-info-table.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.