Skip to content

Migrate from Mideye 5.x to 6.x — Database Migration

This guide covers migrating from Mideye Server 5.x to 6.x. For minor version upgrades (6.x to 6.y), see Upgrades.


Option 1: New server

Install v6 on a fresh server, migrate database, redirect clients. Recommended — minimal downtime, easy rollback.

Option 2: Side-by-side

Install v6 alongside v5 on the same server. Useful when hardware is limited.


  1. Review the Pre-install Checklist — Ensure your environment meets v6 requirements

  2. Back up your v5 installation

    • Database (full export)
    • Configuration files
    • TLS certificates
  3. Document your current configuration

    • RADIUS client IPs and shared secrets
    • LDAP profile settings
    • Authentication type configurations
  4. Plan maintenance window — Users cannot authenticate during the switchover


Section titled “Option 1: Install on a new server (recommended)”

Installing v6 on a new server minimizes risk and allows easy rollback by switching back to the v5 server.

  1. Export the v5 database

    Terminal window
    mysqldump -u root -p mideye > mideye_v5_backup.sql
  2. Prepare the new server

    • Install your operating system (see supported platforms)
    • Install the database server
    • Create an empty database for Mideye
  3. Import the v5 database to the new server

    Terminal window
    mysql -u root -p mideye < mideye_v5_backup.sql
  4. Install Mideye Server 6

    Follow the installation guide for your platform:

  5. Configure database connection

    Edit application-prod.yml to point to your migrated database:

    Terminal window
    sudo nano /opt/mideyeserver6/config/application-prod.yml
  6. Complete the Configuration Wizard

    Access the web GUI and complete initial configuration:

    • Verify the setup challenge from the log file
    • Set the root password
    • Configure Switch connection (use your existing customer port)
  7. Verify data migration

    Log in and confirm:

    • Users are visible
    • LDAP profiles are configured
    • RADIUS clients are listed
    • Authentication types are correct
  8. Redirect RADIUS clients

    Update your VPNs, firewalls, and applications to point to the new v6 server IP address.

  9. Decommission v5 server

    Once v6 is confirmed working:

    • Stop the v5 service
    • Keep the server available for a rollback period (recommended: 1-2 weeks)
    • Then decommission

Install v6 on the same server as v5. Both versions cannot run simultaneously due to port conflicts.

  1. Export the v5 database

    Terminal window
    # MySQL/MariaDB
    mysqldump -u root -p mideye > mideye_v5_backup.sql
  2. Create a new database for v6

    CREATE DATABASE mideye_v6;
  3. Import v5 data into the new database

    Terminal window
    mysql -u root -p mideye_v6 < mideye_v5_backup.sql
  4. Stop Mideye Server 5

    Terminal window
    sudo systemctl stop mideyeserver5
    sudo systemctl disable mideyeserver5
  5. Install Mideye Server 6

    Follow your platform’s installation guide. The installer will detect v5 is present and install v6 in a separate directory.

  6. Configure v6 to use the new database

    Edit application-prod.yml and update the database name to mideye_v6.

  7. Start Mideye Server 6

    Terminal window
    sudo systemctl start mideyeserver6
    sudo systemctl enable mideyeserver6
  8. Complete the Configuration Wizard and verify

If you need to revert to v5:

  1. Stop Mideye Server 6
  2. Re-enable and start Mideye Server 5
  3. Your v5 installation uses the original database (unchanged)

After migrating, verify these items:

CheckHow to verify
Users visibleWeb GUI → Users
LDAP sync worksWeb GUI → Directories → Test connection
RADIUS clients connectedCheck client status indicators
Test authenticationAttempt a login from a test client
Logs recordingWeb GUI → Logs → Authentication Logs
Switch connectionGreen indicator in System Status

Ensure application-prod.yml has the correct connection string:

spring:
datasource:
url: jdbc:mariadb://localhost:3306/mideye_v6?sslMode=TRUST
username: mideye
password: your_password

In v6, RADIUS shared secrets are encrypted in the database. If you’re migrating to a shared database cluster, all servers must use the same keystore.p12 file. See Shared Database.

Your existing customer port from v5 works with v6. Verify:

  • Firewall allows outbound TCP to primary.mideye.com and secondary.mideye.com
  • Port number is correct in the Configuration Wizard

Contact support@mideye.com for migration assistance.