Knowledgebase

MySQL Governor on remote MySQL server

MySQL Governor is a CloudLinux tool designed for monitoring and managing MySQL resource usage on cPanel servers. If you want to use MySQL Governor with a remote MySQL server, there are a few steps you need to follow:

  1. Install MySQL Governor on the cPanel Server:

    • Ensure that MySQL Governor is installed on the cPanel server where it will monitor and manage MySQL resource usage.
  2. Enable Remote MySQL Access:

    • On the remote MySQL server, you need to allow connections from the cPanel server. This is typically done by modifying the MySQL server's configuration file to listen on a public IP address or by configuring specific user accounts to allow connections from the cPanel server's IP address.
  3. Configure MySQL Governor to Monitor Remote Server:

    • Edit the MySQL Governor configuration file to specify the details of the remote MySQL server. The configuration file is usually located at /etc/governor.ini.

    • In the configuration file, you'll find settings like mysql-host, mysql-port, mysql-user, and mysql-password. Modify these settings to match the details of the remote MySQL server.

    • For example:

      plaintext

 

    • mysql-host = remote.mysql.server.com mysql-port = 3306 mysql-user = your_mysql_user mysql-password = your_mysql_password
  • Restart MySQL Governor:

    • After making changes to the configuration file, restart MySQL Governor to apply the new settings:

      bash

 

    • systemctl restart governor-mysql
  1. Monitor MySQL Resource Usage:

    • MySQL Governor should now be monitoring the remote MySQL server's resource usage. You can use the dbctl command to view statistics and make adjustments as needed.

Keep in mind the following considerations:

  • Security: Ensure that you're following best practices for securing the connection between the cPanel server and the remote MySQL server. This may include using encrypted connections (SSL) and implementing firewall rules.

  • Performance: Monitor the performance impact of using MySQL Governor with a remote server. Depending on the distance between the servers and the quality of the network connection, there may be some latency.

  • Firewall Rules: If there are firewalls in place, make sure that the necessary ports (typically 3306 for MySQL) are open for communication between the cPanel server and the remote MySQL server.

Remember to take backups and exercise caution when making changes to configurations. If you're unsure about any of the steps, consider consulting with your hosting provider or system administrator.

 
  • 0 Users Found This Useful
Was this answer helpful?