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. Installer does not create user and database

Installer does not create user and database

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 23.2k 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
    saksham.adyso
    wrote on last edited by
    #1

    I have checked on two installations: the installer cannot create a user and then a database when the Create database and database user before initialization checkbox is checked.
    OS: Windows
    DB: MariaDB

    Error message:
    NetXMS Database Manager Version 5.0.6 Build 5.0-1004-g5f3239af51 (UNICODE)

    Creating database and user...
    SQL query failed (You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.service IDENTIFIED BY '*******'' at line 1):
    CREATE USER nx.service IDENTIFIED BY '******'
    Unable to create database or user

    ***** PRESS ANY KEY TO CONTINUE *****

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Make sure you've selected Legacy Authentication Method when installing MySQL as described in MySQL notes in this chapter: 
      https://netxms.org/documentation/adminguide/installation.html#id14

      On Initialize Database page in the installer "Create database and database user before initialization" should be checked, DBA login name should be "root" and DBA password is the password you entered when installing MySQL.

      Event if this step fails, NetXMS software is fully installed, so you can connect to your MySQL DB with any client and issue queries to create user and database:

      CREATE DATABASE netxms CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
      CREATE USER 'netxms'@'localhost' IDENTIFIED BY 'PaSsWd';
      GRANT ALL on netxms.* to 'netxms'@'localhost';
      

      You may also need to adjust NetXMS configuration file to match these credentials, the file is here: C:\NetXMS\etc\netxmsd.conf

      1 Reply Last reply
      0
      • S
        S
        saksham.adyso
        wrote on last edited by
        #3

        If I manually create a database and a user, everything works, but automatic does not. This is an installer error. I tried automatic user and database creation with MS SQL Server as well and the error was repeated.

        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