I have the zabbix.conf.php file in my ./htdocs/conf directory.
Whenever I start zabbix_server I get the following message in my log file:
I was able to successfully run the database connection test during the initial setup, then downloaded the zabbix.conf.php file and put it the directory it asked my to. Why is zabbix_server trying to connect to MySQL as root?
My zabbix.conf.php file looks like this:
<?php
/*
** ZABBIX
** Copyright (C) 2000-2005 SIA Zabbix
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
global $DB_TYPE, $DB_SERVER, $DB_PORT, $DB_DATABASE, $DB_USER, $DB_PASSWORD, $IMAGE_FORMAT_DEFAULT;
$DB_TYPE = "MYSQL";
$DB_SERVER = "localhost";
$DB_PORT = "0";
$DB_DATABASE = "zabbix";
$DB_USER = "zabbix";
$DB_PASSWORD = "XXXXXX";
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
?>
Whenever I start zabbix_server I get the following message in my log file:
5061:20080915:145003 Failed to connect to database: Error: Access denied for user 'root'@'localhost' (using password: NO) [1045]
I was able to successfully run the database connection test during the initial setup, then downloaded the zabbix.conf.php file and put it the directory it asked my to. Why is zabbix_server trying to connect to MySQL as root?
My zabbix.conf.php file looks like this:
<?php
/*
** ZABBIX
** Copyright (C) 2000-2005 SIA Zabbix
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
global $DB_TYPE, $DB_SERVER, $DB_PORT, $DB_DATABASE, $DB_USER, $DB_PASSWORD, $IMAGE_FORMAT_DEFAULT;
$DB_TYPE = "MYSQL";
$DB_SERVER = "localhost";
$DB_PORT = "0";
$DB_DATABASE = "zabbix";
$DB_USER = "zabbix";
$DB_PASSWORD = "XXXXXX";
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
?>
Comment