Ensure correct login credentials are given. For example, make sure the MySQL database is probably listed on the localhost address or access is given to login via localhost.
Connection Errors:
Test if you are able to connect the MySQL with the specified user. If you are using a password for that user, then edit the password section in the plugin script.
Ensure netstat command is installed to get the socket path. Execute the below command and get the socket path: mysqladmin variables | grep socket Generally, it would be /var/run/mysqld/mysqld.sock Configure this value for the key : 'MYSQL_SOCKET' in the mysql.py python script and check if you are able to connect.
If the issue still persists, execute the plugin using the command python mysql.py and share the output as a screenshot with support@site24x7.com.