MySQL 8.4 Release Notes
30.4.5.9 The ps_is_account_enabled() Function
返回一个表示给定账户性能 Schema instrumentation 是否启用的 YES
或 NO
值。
-
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 |
+------------------------------------------------+