To add the credentials, execute the below command:
sudo /opt/site24x7/monagent/scripts/AgentManager.sh mysql --add_instance
To update the credentials, execute the below command:
sudo /opt/site24x7/monagent/scripts/AgentManager.sh mysql --update_instance
Site24x7 stores only one credential for monitoring per MySQL instance. So, we would update the existing credentials based on hostname and port.