Documentation Home
MySQL 8.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 39.8Mb
PDF (A4) - 39.9Mb
Man Pages (TGZ) - 257.9Kb
Man Pages (Zip) - 364.9Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


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

30.4.5.9 The ps_is_account_enabled() Function

返回一个表示给定账户性能 Schema instrumentation 是否启用的 YESNO 值。

  • in_host VARCHAR(60): 账户检查的主机名称。

  • in_user VARCHAR(32): 账户检查的用户名。

一个 ENUM('YES','NO') 值。

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