Rechercher dans le manuel MySQL
26.12.2.1 The setup_actors Table
The setup_actors
table contains
information that determines whether to enable monitoring and
historical event logging for new foreground server threads
(threads associated with client connections). This table has a
maximum size of 100 rows by default. To change the table size,
modify the
performance_schema_setup_actors_size
system variable at server startup.
For each new foreground thread, the Performance Schema matches
the user and host for the thread against the rows of the
setup_actors
table. If a row from
that table matches, its ENABLED
and
HISTORY
column values are used to set the
INSTRUMENTED
and HISTORY
columns, respectively, of the
threads
table row for the thread.
This enables instrumenting and historical event logging to be
applied selectively per host, user, or account (user and host
combination). If there is no match, the
INSTRUMENTED
and HISTORY
columns for the thread are set to NO
.
For background threads, there is no associated user.
INSTRUMENTED
and HISTORY
are YES
by default and
setup_actors
is not consulted.
The initial contents of the
setup_actors
table match any user
and host combination, so monitoring and historical event
collection are enabled by default for all foreground threads:
- +------+------+------+---------+---------+
- +------+------+------+---------+---------+
- | % | % | % | YES | YES |
- +------+------+------+---------+---------+
For information about how to use the
setup_actors
table to affect
event monitoring, see
Section 26.4.6, “Pre-Filtering by Thread”.
Modifications to the setup_actors
table affect only foreground threads created subsequent to the
modification, not existing threads. To affect existing
threads, modify the INSTRUMENTED
and
HISTORY
columns of
threads
table rows.
The setup_actors
table has these
columns:
HOST
The host name. This should be a literal name, or
'%'
to mean “any host.”USER
The user name. This should be a literal name, or
'%'
to mean “any user.”ROLE
Unused.
ENABLED
Whether to enable instrumentation for foreground threads matched by the row. The value is
YES
orNO
.HISTORY
Whether to log historical events for foreground threads matched by the row. The value is
YES
orNO
.
The setup_actors
table has these
indexes:
Primary key on (
HOST
,USER
,ROLE
)
TRUNCATE TABLE
is permitted for
the setup_actors
table. It
removes the rows.
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-setup-actors-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.