In MySQL, we can use the sys.ps_is_account_enabled()
function to check whether Performance Schema instrumentation for a given account is enabled.
The function returns YES
or NO
, depending on whether or not the instrumentation for the given account is enabled.