Not able to connect Database
-
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.31Configuration file OK
Unable to connect to database netxms@localhost as netxmsand 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/netxmsCan Some one please help me how to fix this
Thanks
Subbu -
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 -
Hi ,
I followed the Procedure instructe below Iam getting the below error , Please help meroot@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] -
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 -
Thanks for the quick response..Its working now
Thanks
Subbu
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