Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Zabbix tries to connect to the wrong database – What to do

by | Mar 30, 2021

Does your Zabbix tries to connect to the wrong database? We can help you fix the issue.

Here at Bobcares, we have seen several such errors while troubleshooting Zabbix issues as part of our Server Management Services for web hosts and online service providers.

Today, let us see how our Support Engineers resolve this problem.


What to do when Zabbix tries to connect to the wrong database

Recently, one of our customers approached us saying that he has a Zabbix server installed on a CentOS 7 remote server, but can’t get it running.

Here is the error message that he can see in /var/log/zabbix/.

[Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)

The customer has a database for Zabbix, but it is named zabbixdb, not Zabbix (as in the error message)

Now let’s see how our Support Engineers help our customers resolve this error.

We suggested restarting the service and check if it still tries to use the Zabbix database in the logs.

In case, if it still uses the Zabbix database then we suggested checking if there are any duplicate DBName entries in zabbix_server.conf. For that, use the below command.

grep DBName /etc/zabbix/zabbix_server.conf

Removing the duplicate entries must resolve the error.

Also, we suggest to re-check the Zabbix configuration file present in /etc/zabbix/web/zabbix.conf.php.

The database credentials will be present at a lower level in the file. So make sure not to add them at the top as it can be overwritten in memory.

So, make sure to check those variables present at the lower level in the configuration file.

[Need any further assistance in fixing Zabbix errors? – We’re available 24*7]



In short, when Zabbix tries to connect to the wrong database, we can simply resolve it by restarting the service. Today, we saw the resolution to this Zabbix error provided by our Support Engineers.


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.