Ad Widget

Collapse

Cannot connect to the database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saran
    Junior Member
    • Jul 2023
    • 2

    #1

    Cannot connect to the database

    Hello Folks,
    I'm new to the Zabbix and Linux Platform. I completed the Zabbix setup. I'm facing some errors. I have attached the Screenshots for reference. Kindly look into that and help me to fix. Thanks in Advance. Cheers!!

    or Kindly Guide me, how to fix this.


    Error: Cannot connect to the database.
    • Unable to determine current Zabbix database version: the table "dbversion" was not found.
  • betelgeuse
    Junior Member
    • Aug 2023
    • 3

    #2
    did you resolve this problem?

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Looks like initial DB schema has not been applied...

      Comment

      • betelgeuse
        Junior Member
        • Aug 2023
        • 3

        #4
        I'm trying to install Zabbix 6.0 LTS on a Ubuntu 22.04 server. I used Nginx as the web server and MySQL as the database. I followed the instructions but I continue to get the error: Unable to determine current Zabbix database version: the table "dbversion" was not found.
        If I run the command: "sudo zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p'<password>' zabbix" again it only says "ERROR 1050 (42S01) at line 1: Table 'role' already exists". However, if I query the Zabbix database the "dbversion" table does not exist. can I manually create the table? if so, where can I find the columns needed to create the table?


        any help would be appreciated

        Comment

        • alejoch
          Junior Member
          • May 2024
          • 1

          #5
          Hello, I have the same problem trying to install Zabbix 6.0 on ubuntu 22.04 kernel version 6.5.0-18-generic when i run the command "sudo zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p'<password>' zabbix" with the right database password I'm not able to complete the setup from the web page even If I dropped the database and user creating a new one but still not working could recommended another monitor opensource soft ? or any idea ?

          Comment

          • danieldabatera
            Junior Member
            • Aug 2024
            • 6

            #6
            Olá, pessoal do fórum da Zabbix!

            Estou enfrentando o mesmoproblema ao tentar instalar o Zabbix 7em um servidor Ubuntu 24.04.1 LTS NOBLE. Ao tentar estabelecer a conexão com o banco de dados, recebo o seguinte erro: "Não é possível conectar ao banco de dados. Não é possível determinar a versão atual do banco de dados do Zabbix: a tabela 'dbversion' não foi encontrada". Apesar de ter feito algumas pesquisas e tentativas, como verificar as credenciais do usuário e as permissões do banco de dados, ainda não consegui resolver o problema.

            Gostaria de saber se alguém já passou por essa situação e se poderia me ajudar a entender e resolver esse erro. Agradeço desde já a atenção e qualquer ajuda será muito bem-vinda, pois estou tentando implementar o Zabbix na empresa onde trabalho.

            Agradeço antecipadamente pela atenção e suporte. Daan.
            Attached Files

            Comment

            Working...