MySQL is the most popular Open-Source Relational SQL database management system. MySQL is one of the best RDBMS being used for developing web-based software applications.

The execution plan shows how the table(s) referenced by the statement will be scanned (i.e plain sequential scan, index scan, etc.) and if multiple tables are referenced, what join algorithms will be used to bring together the required rows from each input table.

There are two types of monitoring:

Note: Click on the respective groups to select the required monitors from the list of the given monitors.

Platform Supported

  1. Linux (Version 16 ,20)
  2. LinuxEx
  3. Solaris
  4. SunOS
  5. AIX_Shared_LPAR
  6. AIX_Dedicated_LPAR
  7. Windows Server Version (8,10,12,16,17,19)

MSSQL Versions Supported:

Prerequisites:

  1. Connect to MySQL Server.
  2. Create a user account with the below command

  3. i.Create a user for monitoring MySQL DB via the following command:
    create user @'%' identified by '';
    ii. Grant privileges to the created user via the following command:
    grant select, show view, replication client on *.* to @'%';
    ● select - Required for running 'EXPLAIN' to capture
    execution plans for query. We also need this privilege
    to retrieve performance information of MySQL.
    ● show view - Required for running 'EXPLAIN'
    on queries that use a view.
    ● replication client - Required to see replication failures and
    failure errors.
  4. Database Monitoring requires some consumers to be enabled. Set below setting in my.cnf to activate
    1. performance-schema-consumer-statements-digest=ON
    2. performance-schema-consumer-events-statements-history-long=ON

Monitoring Configuration

To successfully configure MYSQL database monitoring, you are required to fill the following fields:

Configuration of Time-Based Metrics Monitoring

Settings for DB Based Monitoring Metrics

All metrics have the following common fields which are optional:

Deploy

You also have the option to deploy monitors using Cavisson Agent. The following fields need to be filled to deploy:

Validation

Once the MySQL is validated after completing the above fields, it automatically comes on the monitoring homepage with the number of monitors running or disabled details. To validate detailed DB monitoring, check for the configured database under DB Monitoring icon on the dashboard