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. Not able to connect Database

Not able to connect Database

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 26.1k 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.
  • U
    U
    [email protected]
    wrote on last edited by
    #1

    Hi,
        Iam getting the below error when iam restarting the nxdbr

    [root@localhost ~]# /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql
    NetXMS Database Manager Version 0.2.31

    Configuration file OK
    Unable to connect to database netxms@localhost as netxms

    and this is my netxmsd.conf

    [root@localhost ~]# cat /etc/netxmsd.conf
    #
    # Sample configuration file for NetXMS server
    #

    #
    # DBDriver
    #
    # Database driver to use
    #
    # UNIX example:
      DBDriver = /usr/local/lib/libnxddr_mysql.so
    #
    # Windows example:
    # DBDriver = mysql.ddr

    #
    # DBServer
    #
    # Database server (ODBC source name for ODBC driver)
    #
    # Example:
     DBServer = localhost

    #
    # DBName
    #
    # Database name (not used by ODBC driver)
    #
    # Example:
     DBName = netxms

    #
    # DBLogin
    #
    # Database user name
    #
    # Example:
     DBLogin = netxms

    #
    # DBPassword
    #
    # Database user's password
    #
    # Example:
     DBPassword = trx123

    #
    # LogFailedSQLQueries
    #
    # Controls logging of failed SQL queries.
    # Possible values: "yes" (default) or "no".
    #
    # Example:
     LogFailedSQLQueries = yes

    #
    # LogFile
    #
    # Server's log file. To write log to syslog (or Event Log on Windows),
    # use {syslog} as file name.
    #
    # Examples:
     LogFile = {syslog}
     LogFile = /var/log/netxms

    Can Some one please help me how to fix this

    Thanks
    Subbu

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

      Hi!

      Try to connect to database with MySQL command line client:

      mysql -h localhost -u netxms -p netxms

      and check error messages.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • U
        U
        [email protected]
        wrote on last edited by
        #3

        Hi ,
              I followed the Procedure instructe below Iam getting the below error , Please help me

        root@localhost ~]# mysql -h localhost -u netxms -p netxms

        Enter password:
        ERROR 1045 (28000): Access denied for user 'netxms'@'localhost' (using password: YES)
        [root@localhost ~]# mysql -h localhost -u netxms -p netxms
        Enter password:
        ERROR 1045 (28000): Access denied for user 'netxms'@'localhost' (using password: YES)
        [root@localhost ~]#

        Thanks in Advance

        Subbu
        [/quote]

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

          Your database user netxms does not have access rights to database netxms. Try to grant required rights with the following MySQL query:

          GRANT ALL ON netxms.* to netxms@localhost;
          

          Best regards,
          Victor

          1 Reply Last reply
          0
          • U
            U
            [email protected]
            wrote on last edited by
            #5

            Thanks for the quick response..Its working now

            Thanks
            Subbu

            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