Moving MYSQL to another drive in the same server

Moving MYSQL to another drive in the same server

Steps to change the mysql folder location to another drive in the same machine:

NOTE: Strictly take a backup of the entire ADManager Plus Installation folder ,before performing any changes.


 1. Shut down ADManager Plus
         1. If the product runs as an application, click on Start --› All Programs --› ADManager Plus --› Stop ADManager Plus.
         2. If the product runs as a windows service, click on Start --› Run --› type "services.msc" --› Stop "ManageEngine ADManager Plus".


NOTE: Strictly take a backup of the entire ADManager Plus Installation folder ,before performing any changes.


 2.Cut the mysql folder in the current location and paste it in another drive in the same machine.

 3.Goto to the location "<InstallationDir>/ManageEngine/ADManager Plus/bin" , Now open the setCommonEnv.bat in a wordpad , change the location of DB_HOME to "<Installation Drive>\mysql"
 Example: "F:\mysql".


 4.Goto to the location "<InstallationDir>/ManageEngine/ADManager Plus/conf" and open the file my.ini in wordpad and change the location of basedir,datadir,tmpdir to "<installation Drive>/mysql","<installation Drive>/mysql/data","<installation Drive>/mysql/tmp"  respectively .

Example:  datadir="F:/mysql/data"


 5.Open the wrapper.conf file from the location "<InstallationDir>/ManageEngine/ADManager Plus/conf" and change the location in the line "wrapper.java.additional.8=-Ddb.home=<Installation Drive>/mysql"

 Example: wrapper.java.additional.8=-Ddb.home=F:/mysql

 6.Now start the ADManager Plus and check the settings of the product.
          • Related Articles

          • DCDiag to find RPC error in DC From ADMP Server

            FYI , Steps: 1. Goto ADManager Plus Installed server. 2. In the server , open the command prompt. 3. Type dcdiag /s: ServerName 4. Please make sure all the tests are successful.  Check if you have any RPC errors.
          • Reducing the DB size ( for builds released after 4412)

            Steps to reduce the size of the MYSQL(builds Above 4412), NOTE: Please take a backup of the ADManager Plus (or) take a backup of the DB and the specs.xml 1. Shut down ADManager Plus          1. If the product runs as an application, click on Start ...
          • Virtual IP Bind

            Change the port number in ADManager Plus.  a) Take a back copy of server.xml file located at <Installation Directory>\conf folder. b) Login to ADManager Plus. c) Click on Admin tab --> Product Settings --> Connection. d) Uncheck\Disable "Enable SSL ...