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. Trouble installing/initialising db on Ubuntu 16.04 xenial

Trouble installing/initialising db on Ubuntu 16.04 xenial

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 11.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.
  • J
    J
    jeremyh
    wrote on last edited by
    #1

    Hi,

    I am trying to install NetXMS 1.2 on Ubuntu 16.04 xenial. I have followed all instructions as far as I can tell. I have installed the mysql database driver/connector.

    I seem to be specifically running into issues initialising the mysql database:

    # nxdbmgr init /usr/share/netxms/sql/dbinit_mysql.sql
    NetXMS Database Manager Version 2.2.8 Build 9514 (2.2.8 ) (UNICODE)
    
    Initializing database...
    SQL query failed (Table 'metadata' already exists):
    CREATE TABLE metadata (   var_name varchar(63) not null,   var_value varchar(255) not null,   PRIMARY KEY(var_name) )
    Database initialization failed
    

    When running netxmsd -f, I get:

    2018.09.02 22:06:06.833 *E* Unable to get database schema version

    I have tried remaking the netxms database and also importing dbinit_mysql.sql into the db directly.

    Any ideas what I am doing wrong? Thanks.

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

      Hi,

      Error message "Table 'metadata' already exists" suggests that you are trying to initialize same database after unsuccessful initialization attempt, so it is not possible to determine root cause. Please drop existing database, create a new one, run nxdbmgr init once, and post it's output.

      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