Documentation Home
MySQL 9.1 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.3Mb
PDF (A4) - 40.4Mb
Man Pages (TGZ) - 259.3Kb
Man Pages (Zip) - 366.4Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 9.1 Reference Manual  /  ...  /  The ps_is_account_enabled() Function

30.4.5.9 The ps_is_account_enabled() Function

Returns YES or NO to indicate whether Performance Schema instrumentation for a given account is enabled.

Parameters
  • in_host VARCHAR(60): The host name of the account to check.

  • in_user VARCHAR(32): The user name of the account to check.

Return Value

An ENUM('YES','NO') value.

Example
mysql> SELECT sys.ps_is_account_enabled('localhost', 'root');
+------------------------------------------------+
| sys.ps_is_account_enabled('localhost', 'root') |
+------------------------------------------------+
| YES                                            |
+------------------------------------------------+