Rechercher dans le manuel MySQL
27.1 Prerequisites for Using the sys Schema
Before using the sys
schema, the
prerequisites described in this section must be satisfied.
Because the sys
schema provides an
alternative means of accessing the Performance Schema, the
Performance Schema must be enabled for the
sys
schema to work. See
Section 26.3, “Performance Schema Startup Configuration”.
For full access to the sys
schema, a
user must have these privileges:
INSERT
andUPDATE
for thesys_config
table, if changes are to be made to itAdditional privileges for certain
sys
schema stored procedures and functions, as noted in their descriptions (for example, theps_setup_save()
procedure)
It is also necessary to have privileges for the objects underlying
the sys
schema objects:
Certain Performance Schema instruments and consumers must be
enabled and (for instruments) timed to take full advantage of
sys
schema capabilities:
All
wait
instrumentsAll
stage
instrumentsAll
statement
instruments
andxxx
_current
consumers for all eventsxxx
_history_long
You can use the sys
schema itself to
enable all of the additional instruments and consumers:
For many uses of the sys
schema, the default
Performance Schema is sufficient for data collection. Enabling
all the instruments and consumers just mentioned has a
performance impact, so it is preferable to enable only the
additional configuration you need. Also, remember that if you
enable additional configuration, you can easily restore the
default configuration like this:
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-sys-schema-prerequisites.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
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.