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. Problem With MySQL Connection On New windows Install (Access denied in nxdbmgr)

Problem With MySQL Connection On New windows Install (Access denied in nxdbmgr)

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 37.9k 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.
  • B
    B
    briandonn
    wrote on last edited by
    #1

    Hello,

    I have setup netxms-2.2.2 on MS server 2008 R2 with MySQL. The DB config in the installer worked as expected but after the installer the core service would not start. Results for nxdbmgr check show "Unable to connect to database netxms3@localhost as netxms: Access denied for user 'netxms'@'localhost' (using password: YES)". I issued in MySQL command line "GRANT ALL PRIVILEGES ON netxms3.* TO 'netxms'@'localhost';" (same as suggestion here https://www.netxms.org/forum/configuration/not-able-to-connect-database/). I flushed the perms and recycled MySQL but still getting the same error for nxdbmgr check "Unable to connect to database netxms3@localhost as netxms: Access denied for user 'netxms'@'localhost' (using password: YES)". Would you have any suggestions on other steps to try?

    Output from show grants:
    mysql> show grants for 'netxms'@'localhost';
    +-------------------------------------------------------------+
    | Grants for netxms@localhost                                |
    +-------------------------------------------------------------+
    | GRANT ALL PRIVILEGES ON *.* TO 'netxms'@'localhost'        |
    | GRANT ALL PRIVILEGES ON `netxms2`.* TO 'netxms'@'localhost' |
    | GRANT ALL PRIVILEGES ON `netxms3`.* TO 'netxms'@'localhost' |
    | GRANT ALL PRIVILEGES ON `mysql`.* TO 'netxms'@'localhost'  |
    | GRANT ALL PRIVILEGES ON `sys`.* TO 'netxms'@'localhost'    |
    | GRANT ALL PRIVILEGES ON `netxms`.* TO 'netxms'@'localhost'  |
    +-------------------------------------------------------------+

    Thanks!
    Brian

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

      "localhost" might be getting resolved differently by nxdbmgr and MySQL.
      (for example, one resolves an IPv4 and one an IPv6 address)

      Try using "127.0.0.1" just to be sure.

      1 Reply Last reply
      0
      • B
        B
        briandonn
        wrote on last edited by
        #3

        Hey,

        Thanks for the suggestion, still have the same issue with the IP. I setup a fresh instance of the latest NetXMS and MySQL in a different environment and OS (win 8.1 vs server 2008 R2) and getting the same results.

        I tried pointing a different client and connecting with the same creds to the MySQL instance/DB and they seem to work from localhost except when I connect with NetXMS. Going to try older versions of NetXMS and possibly MySQL to see if I get different results.

        Thanks!
        Brian

        1 Reply Last reply
        0
        • B
          B
          briandonn
          wrote on last edited by
          #4

          Wasn't able to get MySQL to work in my instance and moved to MS SQL Express. Had an issue with that saying known SA creds were invalid when trying to create the DB but found this thread https://www.netxms.org/forum/installation/unable-to-connect-to-database/ and Toepfe steps worked perfectly and am up and running.

          Thanks!

          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