[ZBX-17801] Zabbix Server cannot connect to mysql DB Created: 2020 May 25 Updated: 2024 Apr 10 Resolved: 2020 Jun 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 4.0.21rc1, 4.4.9rc1, 5.0.1rc1 |
Fix Version/s: | 4.0.22rc1, 4.4.10rc1, 5.0.2rc1, 5.2.0alpha1, 5.2 (plan) |
Type: | Problem report | Priority: | Critical |
Reporter: | Jurijs Klopovskis | Assignee: | Artjoms Rimdjonoks |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||
Team: | |||||||||
Sprint: | Sprint 64 (May 2020), Sprint 65 (Jun 2020) | ||||||||
Story Points: | 0.5 |
Description |
Zabbix Server fails to start on CentOS 8 with mysql server with the following error. [Z3001] connection to database 'zabbix' failed: [1227] Access denied; you need (at least one of) the SUPER, SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMIN privilege(s) for this operation Presumably caused by 90d0172d5d commit. Install zabbix from packages to reproduce. Use mysql server that comes with the distribution. dnf install mysql-server Tested with SELinux and firewalld disabled. |
Comments |
Comment by Vladislavs Sokurenko [ 2020 May 28 ] |
Can we select global variable value and change session variable only if global variable is of incorrect value ? And maybe don't set session variable our selves but only show warning <arimdjonoks> vso by global variable I mean: select @@GLOBAL.auto_increment_increment; arimdjonoks |
Comment by Artjoms Rimdjonoks [ 2020 Jun 01 ] |
Available in versions: Updated documentation: |
Comment by gofree [ 2020 Jun 07 ] |
this was also hapenning when updating zabbix proxy to 5.0.1 (from 5.0.0 ) on mysql from rpm packages on centos8 grant SESSION_VARIABLES_ADMIN on *.* to 'zabbix'@'localhost'; |
Comment by gofree [ 2020 Jun 08 ] |
thanks - the grant did solve it on proxy ( mysql version 8.0.17 ) |