All pages
Powered by GitBook
1 of 1

Loading...

ps_is_account_enabled

This function checks whether a specific user account is enabled for instrumentation in the Performance Schema setup_actors table.

Syntax

sys.ps_is_account_enabled(host,user)

Description

ps_is_account_enabled is a available with the .

It takes host and user arguments, and returns an ENUM('YES','NO') depending on whether Performance Schema instrumentation for the given account is enabled.

Examples

This page is licensed: CC BY-SA / Gnu FDL

SELECT sys.ps_is_account_enabled('localhost', 'root');
+------------------------------------------------+
| sys.ps_is_account_enabled('localhost', 'root') |
+------------------------------------------------+
| YES                                            |
+------------------------------------------------+
stored function
Sys Schema

Sys Schema is available from MariaDB 10.6.