The services incorporated into the MySQL Enterprise Service Manager are:
The MySQL Server.
The Apache/Tomcat Server.
To start, stop, or restart the MySQL Enterprise Service Manager, run the script
/opt/mysql/enterprise/monitor/mysqlmonitorctl.sh
on Unix or
/Applications/mysql/enterprise/monitor/mysqlmonitorctl.sh
on Mac OS X with the command-line parameter
start
, stop
, or
restart
. To see the available options, issue
the command mysqlmonitorctl.sh help
.
The help
parameter produces the following
output:
usage: ./mysqlmonitorctl.sh help ./mysqlmonitorctl.sh (start|stop|status|restart) ./mysqlmonitorctl.sh (start|stop|status|restart) mysql ./mysqlmonitorctl.sh (start|stop|status|restart) tomcat help - this screen start - start the service(s) stop - stop the service(s) restart - restart or start the service(s) status - report the status of the service
To autostart all the Service Manager components, call the
mysqlmonitorctl.sh start
from your start-up
script.
To start the service:
shell> ./mysqlmonitorctl.sh start ./mysqlmonitorctl.sh : mysql started nohup: redirecting stderr to stdout Starting mysqld daemon with databases from /opt/mysql/enterprise/monitor/mysql/data/ Using CATALINA_BASE: /opt/mysql/enterprise/monitor/apache-tomcat Using CATALINA_HOME: /opt/mysql/enterprise/monitor/apache-tomcat Using CATALINA_TMPDIR: /opt/mysql/enterprise/monitor/apache-tomcat/temp Using JRE_HOME: /opt/mysql/enterprise/monitor/java
If you try to start the service and it is already running, you are warned that the services are already running.
The restart
command is equivalent to executing
a stop
and then start
operation.
This script can also check the status of the Tomcat web server or the MySQL repository.
shell> ./mysqlmonitorctl.sh status MySQL Network MySQL is running MySQL Network Tomcat is running
After the Service Manager is installed, you can configure the Dashboard, as explained in Section 15.6.2.7, “MySQL Enterprise Service Manager Configuration Settings and Advisor Installation”.