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. nxdbmbr bug?

nxdbmbr bug?

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 50.7k 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.
  • S
    S
    SKYnv
    wrote on last edited by
    #1

    seems a bug in nxdbmbr yet exists.

    1. https://www.netxms.org/forum/general-support/database-export-failed-gt-v-1-2-0-error-cannot-load-schema-file-windows-2008-r2/
    2. https://www.netxms.org/forum/general-support/export-cannot-load-schema-file

    i'm use mysql

    this not work

    C:\NetXMS_new\bin>nxdbmgr export c:\netxmsbase.sql
    NetXMS Database Manager Version 1.2.0
    
    ERROR: cannot load schema file "C\lib\sql\dbschema_sqlite.sql"
    Database export failed.
    

    and this not work too

    C:\NetXMS_new\bin>nxdbmgr export c:/net.sql -c c:\netxms_new\etc\netxmsd.conf
    NetXMS Database Manager Version 1.2.0
    
    ERROR: cannot load schema file "C\lib\sql\dbschema_sqlite.sql"
    Database export failed.
    

    if i create path "C\lib\sql\", it not work again.

    1 Reply Last reply
    0
    • S
      S
      SKYnv
      wrote on last edited by
      #2

      i'm use this way

      on old srv (win)

      mysqldump my_database --user=username --password=my_password > my_base.sql
      

      on new srv (freebsd)

      mysql -u username -pPassword
      USE My_base
      SOURCE MY_base.sql
      exit;
      
      nxdbmgr update
      nxdbmgr check
      

      but it didn't work

      :26:53] Log file opened
      :26:53] Platform subagent "/usr/local/lib/libnsm_freebsd.so" successfully loaded
      :26:53] Database driver "mysql.ddr" loaded and initialized successfully
      :26:53] Data directory "C:\NetXMS_new\NetXMS\var" does not exist or is inaccessible
      

      how i can fix this? It old setting in database (

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

        Hi!

        Add parameter DataDirectory = path to your netxmsd.conf. It should override setting in database.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • S
          S
          SKYnv
          wrote on last edited by
          #4

          @victor said in nxdbmbr bug?:

          Hi!

          Add parameter DataDirectory = path to your netxmsd.conf. It should override setting in database.

          Best regards,
          Victor

          thank, it works.

          Maybe need add some ability in nxdbmgr?
          -reset config in database? or overwrite
          -reset account?

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

            Yes, it could be useful. I'll add it as low priority feature request.

            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