Hi guys,
I wanted to move from Zabbix 5 to Zabbix 6 as my old Zabbix 5 enviroment is on CentOS 7. So I made a backup of the DB, installed CentOS 9 Stream and installed Zabbix. I then restored the backup and then put the DB password into the zabbix-server.conf and now I'm getting permission issues connecting to the db.
Zabbix GUI says permission denied, Zabbix server log says, [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock'.
In DB Zabbix
MariaDB [zabbix]> show grants for zabbix@localhost;
+---------------------------------------------------------------------------------------------------------------+
| Grants for zabbix@localhost |
+---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO `zabbix`@`localhost` IDENTIFIED BY PASSWORD '**************' |
| GRANT ALL PRIVILEGES ON `zabbix`.* TO `zabbix`@`localhost` |
+---------------------------------------------------------------------------------------------------------------+
What am I doing wrong?
Thanks,
Ayaz
Comment