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
Monitor
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. You can remove these services without also removing your MySQL Enterprise Service Manager installation. For more information about these services, see Section 15.6.2.6, “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 removes all the services
associated with MySQL Enterprise Service Manager.
To confirm that these services have been removed, check in the Microsoft Management Console Services window.
To reinstall these services, use the Install MySQL Enterprise Monitor
Services
menu option.
You can also 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 15.6.2.6, “Starting/Stopping the MySQL Enterprise Monitor Service on Windows”.
Removing the Monitor Agent
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 executes the uninstall
program located in the C:\Program
Files\MySQL\MySQL\Enterprise\Agent
directory.
To remove only one of the agents from a machine that is running
several agents, do not remove
the MySQL Enterprise Monitor Agent
entry from
the Add or Remove Programs
menu. To remove a
single agent, see
Removing a
Single Agent.
Removing the Monitor Agent automatically deletes its associated
.log
and .pid
files.
After removing the Monitor Agent, you might need to remove the
directories, C:\Program
Files\MySQL\Enterprise
and C:\Program
Files\MySQL\Enterprise\Agent
.
Removing the Monitor Agent this way removes the default service.
If you are running additional Monitor Agents as described in
MySQL Server (agent-instance.ini
) Configuration, you must remove those agents
manually. See the next section for instructions on doing this.
Removing a Single Agent
To remove only one of the agents from a machine that is running
several 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 15.6.3.5.1, “Starting/Stopping the Agent on Windows”.
To confirm the location of the agent log files, check the
ini
file. For more information on this topic,
see MySQL Enterprise Agent Configurable Options.
Go to the command line and remove the MySQL Enterprise Agent as a Windows service by typing:
shell> sc delete AgentName
To confirm that the agent has been removed, check that there is no longer any entry for that agent in the Microsoft Management Console Services window.
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 way.