Ad Widget

Collapse

Cannot connect to the database.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PatxiAndueza
    Junior Member
    • Feb 2022
    • 19

    #1

    Cannot connect to the database.

    Hello,

    I'm still trying to configure Zabbix and this error pops at the web interface:
    Click image for larger version

Name:	Cannot connect to the database.png
Views:	6307
Size:	26.6 KB
ID:	439526

    If I try "Database host: <my_ip>" "Host '<my_ip>' is not allowed to connect to this MySQL server" appears.


    In /zabbix_server.conf: DBName, DBUser, DBPasswords are set.

    systemctl status mysql.service: Active.

    systemctl restart and enable fot zabbix-server zabbix-agent apache2 already runned.


    Any instruction are apreciated. Thanks in advance!

    Patxi

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

    #2
    Has this user been granted with all the needed rights in DB? Is this user allowed to connect from this particular host? It looks like a permission issue on DB side.

    Comment

    • PatxiAndueza
      Junior Member
      • Feb 2022
      • 19

      #3
      Originally posted by cyber
      Has this user been granted with all the needed rights in DB? Is this user allowed to connect from this particular host? It looks like a permission issue on DB side.
      DB wasn't creating users table correctly. Database droped and reconfigured.

      Zabbix ready to use!

      Thanks for the quick respone, aprecciated!

      Comment

      Working...