If both Apache Tomcat server and MySQL repository are installed on the same host, the best option in large scale environments is to move the MySQL Instance to its own host. This enables scaling to monitor hundreds of MySQL Instances and Hosts.
To do this, you should:
Stop the application Apache Tomcat server and MySQL Instance.
Copy the
datadir
contents to the new host (if moving to a fresh MySQL instance), or run mysqldump and import the dump into the new MySQL instance.Modify Tomcat's configuration to use the new MySQL Instance on the new host.
Update the configuration with the configuration tool. This tool can be found at the following location:
Table 10.4 Configuration utility location (default)
Operating System | Path |
---|---|
Microsoft Windows |
|
Linux / Unix |
|
macOS |
|
For more information on the configuration utilities, see Chapter 11, Configuration Utilities.