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. Importing database 1.2.16

Importing database 1.2.16

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 39.6k 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
    CMouncey
    wrote on last edited by
    #1

    Hello,

    I have exported a database from a windows platform (32 bit) and am trying to import the database onto a Ubuntu (32 bit) platform. Both are 1.2.16 using MySQL, when I run the import I receive the following SQL errors:

    Importing table raw_dci_values
    SQL query failed (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1):
    INSERT INTO raw_dci_values (item_id,raw_value,transformed_value,last_poll_time) VALUES ('8600','ô_B•ô_öXw¡4775807','ô_B•ô_öXw¡4775807','1352840681')
    ERROR: SQL query "SELECT * FROM raw_dci_values" on import file failed (callback requested query abort)
    Database import failed.

    I have run nxdbmgr upgrade, check, check-data-tables am at a loss where to go. Any ideas?

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

      Is the collation (charset) of the new DB schema the same as the old DB schema?

      1 Reply Last reply
      0
      • C
        C
        CMouncey
        wrote on last edited by
        #3

        Thank you for your reply,

        Yes both Databases are using Latin1_swedish_ci as the collation and Latin1 as Characterset

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

          Hi!

          Do you use precompiled binaries or you compile NetXMS on Ubunto from sources?

          Best regards,
          Victor

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

            Hello Victor,

            The NetXMS was compiled on the server using the source code download - netxms-1.2.16.tar.gz

            1 Reply Last reply
            0
            • C
              C
              CMouncey
              wrote on last edited by
              #6

              FYI, we stripped the data from inside the database and that removed the illegal characters. The (shell) database then loaded successfully and we were able to use the database, although all of the historic values were missing (we had stripped them)). Could this be something to do with the export/import function?

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

                Hi!

                You may need to build NetXMS in UNICODE mode (by adding --enable-unicode to configure) or set proper code page in netxmsd.conf (CodePage parameter).

                Best regards,
                Victor

                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