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. Fix netxms core service on windows won't start or Unable to establish connection

Fix netxms core service on windows won't start or Unable to establish connection

Scheduled Pinned Locked Moved Support
6 Posts 5 Posters 40.5k 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.
  • K
    K
    karanik
    wrote on last edited by
    #1

    Hello,
    I just realized that on a new installation of Windows2008 Standard R2 with MySQL 5.7 if the password contains the character "#" i am taking the error "Unable to connect to database"
    I don't know if that is a bug or not.

    C:\NetXMS\bin>nxdbmgr check
    NetXMS Database Manager Version 2.0.6 Build 8073 (2.0.6-RELEASE) (UNICODE)
    
    Unable to connect to database netxms_db@localhost as netxms: Access denied for
    ser 'netxms'@'localhost' (using password: YES)
    
    C:\NetXMS\bin>nxdbmgr check
    NetXMS Database Manager Version 2.0.6 Build 8073 (2.0.6-RELEASE) (UNICODE)
    
    Checking database (excluding collected data):
    * Checking zone objects...                                            [PASSED]
    * Checking node objects...                                            [PASSED]
    * Checking interface objects...                                       [PASSED]
    * Checking network service objects...                                 [PASSED]
    * Checking cluster objects...                                         [PASSED]
    * Checking template to node mapping...                                [PASSED]
    * Checking object properties...                                       [PASSED]
    * Checking event processing policy...                                 [PASSED]
    * Checking network map links...                                       [PASSED]
    * Checking data tables...                                             [PASSED]
    Database doesn't contain any errors
    Database check completed
    
    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      Try to enclose the DB password in "".

      Does that work?

      1 Reply Last reply
      0
      • K
        K
        karanik
        wrote on last edited by
        #3

        @tomaskir said in Fix netxms core service on windows won't start or Unable to establish connection:

        Try to enclose the DB password in "".

        Does that work?

        Same.
        I test it and from C:\NetXMS\etc\netxmsd.conf

        No problem for me. I remove the # and all is ok.

        I post that just to inform you.

        1 Reply Last reply
        0
        • N
          N
          networkwise
          wrote on last edited by
          #4

          I had the same issue and it worked for me so no special characters

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

            This is apparently still a bug/issue.  The # character cannot be used in the password for the db user (works fine from MySQL Command Line Client).

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

              You can encode such password with nxencpasswd tool. For example:

              nxencpasswd dbuser dbpass#123
              

              will produce string

              MKGI20iIOABe/NdxPN/ZMjCyW8ng20jLMLJbyeDbSMs=
              

              which you can use as value for DBPassword 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