Ad Widget

Collapse

Cannot connect to the database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sandeep
    Junior Member
    • Jun 2026
    • 1

    #1

    Cannot connect to the database

    Hi Everyone. I am new to Zabbix and trying to install zabbix 7.4 with mysql 8 on single node.
    Installation went fine and all services came up without any issues and I am able to connect to the internet using localhost and creds through CLI.
    But, coming to webserver, it throws error saying cannot connect to the database. Can someone please help me to fix the issue

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1434

    #2
    Originally posted by Sandeep
    Hi Everyone. I am new to Zabbix and trying to install zabbix 7.4 with mysql 8 on single node.
    Installation went fine and all services came up without any issues and I am able to connect to the internet using localhost and creds through CLI.
    But, coming to webserver, it throws error saying cannot connect to the database. Can someone please help me to fix the issue
    The web interface can be run on a separate system (mostly for large deployments), so it needs to get its most basic configuration from a separate config file from what the Zabbix server reads. Look in the web root in the 'conf' directory for a while named 'zabbix.conf.php' That needs to contain database configuration before the web interface will be able to connect to the database.

    Comment

    Working...