Ad Widget

Collapse

Issue during installation wizard "Cannot connect to the database."

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tbaror
    Junior Member
    • Aug 2021
    • 5

    #1

    Issue during installation wizard "Cannot connect to the database."

    Hello,

    I have issue during fresh install Zaabix under Ubuntu 20.04 and Postgresql ,Ngnix, i followed the instaruction from zabbix official , the error shown below.
    any idea ?
    Please advice
    Thanks
    Code:
    Cannot connect to the database.[LIST][*]Unable to determine current Zabbix database version: the table "dbversion" was not found.[/LIST]
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Looks like you created the database
    Code:
    Run the following on your database host.
    # sudo -u postgres createuser --pwprompt zabbix
    # sudo -u postgres createdb -O zabbix zabbix
    but didn't import the schema in it:
    Code:
    On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.
    # zcat /usr/share/doc/zabbix-sql-scripts/postgresql/create.sql.gz | sudo -u zabbix psql zabbix
    Here you should connect psql to the database, specifying the host name if your database is located elsewhere.

    To put it simple, is your database running on the same host as Zabbix server?

    Comment

    • tbaror
      Junior Member
      • Aug 2021
      • 5

      #3
      issue solved, the database where set us English , set it back to English UK and error solved

      Comment

      Working...