Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Migrating NetXMS database on New NetXMS server

Migrating NetXMS database on New NetXMS server

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 27.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    adimitrov
    wrote on last edited by
    #1

    Hello team,

    I am planing on changing my netxms server with new one. I have the new one configured and ready to go, but first i need the database from the old server. My original plan was to dump the base (it is mysql database) and migrate it to the new server, until i found a topic here in the forum. My new plan is.

    Old server version is 2.0.7.
    New server version is 2.0.8.

    1. Upgrade the old server to 2.0.8. and upgrade the database.

    2. Stop netxmsd on old server

    3. Export database using nxdbmgr:

    nxdbmgr export export_file

    1. Create and initialize new database as usual (this is already done)
    2. Import data using nxdbmgr:

    nxdbmgr import export_file

    1. Run netxmsd on new server

    Any advice on this will be appreciated.

    Best Regards,
    Adrian

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      nxdbmgr has a migrate command, I suggest using that 🙂

      As a bonus, it has the option to not migrate collected data, so if you dont need those, the migration will be MUCH faster.

      1 Reply Last reply
      0
      • A
        A
        adimitrov
        wrote on last edited by
        #3

        Hey Tomas ,

        Thanks for the fast response.

        So it is better to use

        migrate <source> | Migrate database from given source

        which means:

        nxdbmgr migrate <IPaddressOftheOldMachine>

        Is it that simple or i need to follow this : https://wiki.netxms.org/wiki/How_to_migrate_to_another_database

        I actually need the data and the database is about 170GB so i guess it will be a slow process.

        Best Regards,
        Adrian

        1 Reply Last reply
        0
        • T
          T
          tomaskir
          wrote on last edited by
          #4

          Yes, follow the wiki article.

          A 'nxdbmgr migrate' will still be faster than sql dump/import or nxdbmgr export/import.

          1 Reply Last reply
          0
          • A
            A
            adimitrov
            wrote on last edited by
            #5

            Thanks for the help !

            Best Regards,
            Adrian

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups