How Tos > Setup MYSQL database in a separate machine

Setup MYSQL database in a separate machine

Tags:  

Setup MySQL database in a separate machine

Consider the following steps given below to setup MySQL database in a separate machine.
  1. Copy the mysql folder under <Central-home> to the remote machine. Note: The dmsdb folder [<Probe-home>\mysql\data] must exist in probe installation in case if you cut and paste the mysql folder instead of copying the same.
  2. Create a folder with the name tmp under the mysql home directory if it does not exists.
  3. Start the installed mysql by executing the following command in <install-dir>/mysql/bin directory
    >mysqld-nt.exe -u root -P 23306"
  4. Connect to the mysql by executing the following command in <install-dir>/mysql/bin directory
    >"mysql.exe -u root -P 23306"
  5. Execute the following queries:
    1. create database supportcenter;
    2. create database desktopcentral;
    3. use mysql;
    4. Execute this query if the database has not been configured with a password
      grant ALL ON *.* to 'root'@'<name of the machine in which MSP server is running>' WITH GRANT OPTION;

      eg.:grant ALL ON *.* to 'root'@'test.adventnet.com' WITH GRANT OPTION;

      or

      Execute this query if the database has configured with a password
      grant all on *.* to root@'%' identified by '<password you have configured>' WITH GRANT OPTION;

      eg.:grant all on *.* to root@'%' identified by 'efgh123' WITH GRANT OPTION;


  6. From MSP Central Side: Replace "localhost:23306" with [machine name in which mysql is installed : mysql port] the new machine name:mysql port [eg.: test1.adventnet.com:3306] in the following files.
    1. CentralHome\conf\database_params.conf
      url jdbc:mysql://test1.adventnet.com:23306/centraldb?jdbcCompliantTruncation=false
    2. CentralHome\desktopcentral\conf\database_params.conf
      url=jdbc:mysql://test1.adventnet.com:23306/desktopcentral
    3. CentralHome\supportcenter\server\default\deploy\mysql-ds.xml
      jdbc:mysql://test1.adventnet.com:23306/supportcenter
  7. From MSP Central side: Change the "StartDBServer" attribute value to "false" in the following files.
    1. CentralHome\supportcenter\server\default\conf\nms-service.xml
    2. CentralHome\desktopcentral\conf\Persistence\persistence-configurations.xml
Click here to know the procedures if you want to configure a password to the database.




 RSS of this page

rtttrrb