Change host name for mysql server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zul.shariff
Posts: 8
Joined: Mon Jan 24, 2011 10:48 am

Change host name for mysql server

Post by zul.shariff »

When connecting to core configuration manager' I get the following error:
Error while connecting to database:
[fsrvnms1] Connection to the database server has failed by reason:
Unknown MySQL server host 'fsrvnms1' (1)

What file holds the connect string so I can change it?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Change host name for mysql server

Post by mguthrie »

The server name and credentials for the Core Config Manager are stored in the following file:

/var/www/html/nagiosql/config/settings.php

Edit the credentials to match your server, and that *should* take care of it. Let us know if that doesn't work.
Locked