Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Stop the Windows Service "Apache Tomcat 8.0 diagserver"
     
  2. Stop the Windows Service "diagserverdb"
     
  3. Create a folder in the new destination for the MariaDB database (Example: "D:\mariadb"). Do not use Network Dives or UNC Path for the new location!
     
  4. Move all files from the folder "C:\diagserverdata\mariadb" (default location) to the new location folder
     
  5. Edit the file "my.ini" in the new location folder. You can use Notepad.exe.
    Change the setting "datadir" below "[mysqld]" to the new location folder:

    Code Block
    titlemy.ini
    [mysqld]
    datadir='D:\mariadb'

    Dont forget to save the "my.ini"!
     

  6. Change the Windows Service for the MariaDB service.
    You have to open a cmd as administrator and with extended rights.
    Insert this command and change the location in the "--defaults-file" option to your new location folder:

    Code Block
    titleCommand
    sc config diagserverdb binpath="\"C:\Program Files\custo diagnostic server\mariadb\bin\mysqld.exe\" \"--defaults-file=D:\mariadb\my.ini\" \"diagserverdb\""

    Run the command.
    If the command line returnes "[SC] ChangeServiceConfig SUCCESS" all things are fine. Otherwise you have to search for errors.
     

  7. Start the service "diagserverdb"
     
  8. Start the service "Apache Tomcat 8.0 diagserver"


Moving the Maria.db by MACOS



  1. Install of the new System diag Server on MAC
  2. Start the diagserver Service
  3. When the Service is running Stop the Service after 2 min
  4. Stop the Service, open the pas: /Library/Application Support/custo diagnosticserver/ and delete or rename the folder 
  5. of the old System, Stop the diagserver Service
  6. after 2 min copy the the folder "database" and the evaluation folder in the new system see point 4
  7. Start the diagserver Service