i was trying to install icinga notification on our icinga server, this our environment:
OS Ubuntu 20.04.6 LTS
Icinga Web 2 Version 2.12.1
mysql version Ver 8.0.39-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
I have followed the steps in the guide:
Created the user like this:
CREATE DATABASE notifications;
CREATE USER ‘notifications’@‘localhost’ IDENTIFIED BY ‘PASSWORDMODIFIED’;
GRANT ALL ON notifications.* TO ‘notifications’@‘localhost’;
Imported the schema
mysql -u root -p notifications < /usr/share/icinga-notifications/schema/mysql/schema.sql
This looks like a network connectivity issue to me, I would check the local firewall and/or the network firewall. Is your database located on the same VM, same IP, as your notifications installation? Can you ensure you have connectivity from the command line of the notificatiosn server, to port 3306 of the database server? (I use the check_tcp plugin for that)
My two cents,
Jean
I have tried to make a telnet to the 3306 port and it works, the database is on the same server so as icinga is working correclty now i would expect that the connection should be working without any issue
You are trying to connect with user notifications@127.0.0.1 but your DB user is notifications@localhost
Try changing the user used to connect to: notifications@localhost