How to resolve Table 'performance_schema.global_status' doesn't exist error?

How to resolve Table 'performance_schema.global_status' doesn't exist error?

This error may occur because the MySQL user given in Applications Manager for monitoring lacks SELECT privileges on performance_schema.

To fix this error, ensure performance_schema is enabled and grant SELECT on performance_schema.* to the user.

Steps to provide the permission:

1. Login to MySQL as a privileged user (e.g., root):
      mysql -u root -p

2. Grant SELECT permission on performance_schema:
      GRANT SELECT ON *.* TO 'mysql_user'@'apm_host';
  • Replace:

    • 'mysql_user' with the actual MySQL username.

    • 'apm_host' with the host/IP of Applications Manager.

3. Apply the changes:
      FLUSH PRIVILEGES;
Example:
      GRANT SELECT ON performance_schema.* TO 'mysqlAPMUser'@'apm-test-10';       FLUSH PRIVILEGES;

                  New to ADSelfService Plus?