Introduction

This article describes how to move the local installed MariaDB of the custo diagnostic database to another local location on the same server computer.

Moving the MariaDB on a Windows Computer

  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:

    my.ini
    [mysqld]
    datadir='D:\mariadb'

    Don't forget to save the "my.ini" file!
     

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

    Command
    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 MariaDB on a macOS based Computer

  1. Install custo diagnostic server on the new Computer. The diagserver service will be started automatically.

  2. When the diagserver service is running fine please stop the diagserver service (at the earliest 2 minutes after starting).

  3. Open the path "/Library/Application Support/custo diagnosticserver/" and delete or rename the folder "database" and the evaluation folder.

  4. On the old System stop the diagserver service.

  5. After the diagserver service is stopped open the path "/Library/Application Support/custo diagnosticserver/" and copy or move the the folder "database" and the evaluation folder to the new computer.

  6. Start the diagserver service on the new computer.

  7. Remove or uninstall the custo diagnostic server from the old computer.


Convert Maria DB to macOS


  1. install diag Client/server on macOS
  2. create a backup via servicecenter "backup task" in the windows system
  3. copy database to desktop (is a example)
  4. stop the diagserver in macOS via command line: sudo launchctl bootout system "/Library/LaunchDaemons/de.customed.diag.server.plist"
  5. open command line in macOS
  6. input the following command with correct with the name from the backup: sudo /Library/custodiagnosticserver/mysql/bin/mysql --defaults-extra-file='/Library/Application Support/custo med/custodiagnosticserver/database/secrets/root@localhost.cnf' diagdb < "~/Desktop/2025-04-08_16_32.db.backup.sql"
  7. new start diag server  



  • No labels