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. Downgrade database

Downgrade database

Scheduled Pinned Locked Moved Support
8 Posts 3 Posters 22.1k 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.
  • C
    C
    colaboy
    wrote on last edited by
    #1

    I am using mysql database, I just downgrade from 1.1 to 1.0.10, but I cannot downgrade the database, any way to do that?

    Checking database:
    Your database has format version 221, this tool is compiled for version 105.
    You need to upgrade your server before using this database.
    Database check aborted

    Thank you.

    1 Reply Last reply
    0
    • C
      C
      colaboy
      wrote on last edited by
      #2

      Is it safe to change the SchemaVersion in table metadata?

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        Hi!

        There are no standard downgrade procedure. It is not safe to just change schema version. I'll take a look how to downgrade database manually.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          You can try to execute the following SQL script to downgrade database:

          DROP TABLE ap_common;
          DROP TABLE ap_bindings;
          DROP TABLE ap_config_files;
          ALTER TABLE items DROP COLUMN system_tag;

          ALTER TABLE users DROP COLUMN auth_failures;
          ALTER TABLE users DROP COLUMN last_passwd_change;
          ALTER TABLE users DROP COLUMN min_passwd_length;
          ALTER TABLE users DROP COLUMN disabled_until;
          ALTER TABLE users DROP COLUMN last_login;
          ALTER TABLE users DROP COLUMN password_history;

          DROP TABLE network_maps;
          DROP TABLE network_map_elements;
          DROP TABLE network_map_links;

          UPDATE metadata SET var_value='105';

          Best regards,
          Victor

          1 Reply Last reply
          0
          • C
            C
            colaboy
            wrote on last edited by
            #5

            Thanks~ The core is running normal now. But it will stop everytime when I amend the event processing policy. And return "Unable to determine database syntax.

            I am planning to make a clean install and migrate data to it.

            1 Reply Last reply
            0
            • T
              T
              testos
              wrote on last edited by
              #6

              Hi.

              You can try to execute the following SQL script to downgrade database:

              DROP TABLE ap_common
              ...;

              Is valid this script for downgrade database from 1.1.1 to 1.1.0?

              For these situations, it would be nice nxdbmgr tool had a downgrade option

              Best regards.

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                No ready to use script. I have to create one. Could you please try my posted patch first, and if it will not help, I'll create downgrade script.

                Best regards,
                Victor

                1 Reply Last reply
                0
                • T
                  T
                  testos
                  wrote on last edited by
                  #8

                  Okay. Thank you very much.

                  Best regards.

                  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