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