Removing the MySQL Enterprise Service Manager
Remove the MySQL Enterprise Service Manager by going to the Control
Panel
and choosing Add or Remove
Programs
. Find the entry for MySQL Enterprise
Monitoring and Advisory Service
and remove it. During
the uninstall process you will be given the option of saving
existing data and log files. Choose this option if you plan to
reinstall the MySQL Enterprise Monitor.
If you are not saving existing data, after MySQL Enterprise Service Manager has
been removed you may delete the C:\Program
Files\MySQL\Enterprise\Monitor
directory.
If you chose not to remove existing data and log files when
uninstalling MySQL Enterprise Service Manager do
not remove the
C:\Program Files\MySQL\Enterprise\Monitor
directory. Doing so will delete these files.
If you added the Tomcat/Apache web server to the list of Windows
firewall exceptions, remove this service by opening the
Windows Firewall
from the Control
Panel
. Choose the Exceptions
tab and
delete the Tomcat/Apache
entry.
Removing MySQL Enterprise Monitor Services Only
When the MySQL Enterprise Service Manager is installed, the Tomcat/Apache and MySQL server services are started. It is possible to remove these services without also removing your MySQL Enterprise Service Manager installation. For more information about these services see, Section 2.2.5, “Starting/Stopping the MySQL Enterprise Monitor Service on Windows”.
Do this by finding the MySQL Enterprise Monitor
menu option and
choosing Services
and then Uninstall
MySQL Enterprise Monitor Services
. This will remove all the services
associated with MySQL Enterprise Service Manager.
You can confirm that these services have been removed by checking services in the Microsoft Management Console Services window.
If you wish to reinstall these services you can do this by using
the Install MySQL Enterprise Monitor Services
menu option.
It is also possible to remove services using the
mysqlmonitorctl.bat
file found in the
C:\Program Files\MySQL\Enterprise\Monitor
directory. To see the available options, go to the command line
and type: myqlnetworkctrl help
. This batch
file is discussed in more detail in
Section 2.2.5, “Starting/Stopping the MySQL Enterprise Monitor Service on Windows”.
To remove the Monitor Agent itself, open the Control
Panel
and choose Add or Remove
Programs
. Find the entry for MySQL Enterprise
Monitor Agent
and remove it. This will execute the
uninstall program located in the C:\Program
Files\MySQL\MySQL\Enterprise\Agent
directory.
If you are running more than one agent on the same machine and
wish to remove only one of the agents, do
not remove the MySQL
Enterprise Monitor Agent
entry from the Add
or Remove Programs
menu. To remove a single agent see
Section 2.7.1, “Removing the MySQL Enterprise Monitor: Windows”.
After removing the Monitor Agent you may also need to remove the
directories, C:\Program
Files\MySQL\Enterprise
and C:\Program
Files\MySQL\Enterprise\Agent
.
Removing the Monitor Agent in this fashion will remove the default
service. However, if you are running additional Monitor Agents as
described in Section 2.3.6.2, “MySQL Server (agent-instance.ini
) Configuration”, you will have to
remove those agents manually. See the next section for
instructions on doing this.
If you are running more than one agent on the same machine and
wish to remove only one of the agents, do
not remove the MySQL
Enterprise Monitor Agent
entry from the Add or
Remove Programs
menu. To remove a single agent and leave
other agents intact follow these steps:
Stop the agent
Confirm the location of the log files
Remove the agent as a service
Remove/Archive the associated files
It is best to stop the agent before removing it; for instructions on stopping an agent see, Section 2.3.5.1, “Starting/Stopping the Agent on Windows”.
You can confirm the location of the agent log files by checking
the ini
file. For more information on this
topic see Section 2.3.6.1, “MySQL Enterprise Monitor Agent (mysql-monitor-agent.ini
)
Configuration”.
Go to the command line and remove the MySQL Enterprise Monitor Agent as a Windows service by typing:
shell> sc delete AgentName
You can confirm that the agent has been removed by checking the Microsoft Management Console Services window. There should no longer be an entry for the removed agent.
You should also remove or archive any log or configuration files associated with this agent. If you have installed any additional agents, remove them in the same fashion.