Hello, I'm trying to migrate a zabbix 3.0 to a 6.0.
I'll tell you what I'm trying to do:
I installed a rocky linux 8 properly, installed a MariaDB 10.6.7 as well as the zabbix 6.0 packages.
An installation from scratch.
I then recover my old database which was in UTF8.
I modify my zabbix_server.conf and zabbix_conf.php files
Then I start my zabbix-server to upgrade the database
I check that the update is going correctly with this command :
cat /var/log/zabbix/zabbix_server.log | grep database
Once the database is updated, I turn off my zabbix server in order to switch my tables to utf8mb4 :
I then do the history tables :
Now that I have finished modifying everything etc.. I start my zabbix server.
When I try to log in with the Admin account, it shows me this error message:
Incorrect username or password or the account is temporarily blocked.
After checking, in the database logs, I see my query pass which does a SELECT on the Admin user (normal thing)
When I do the select, it doesn't retrieve anything. I understand that there is a problem with the database.
If I modify the variable username of Admin" in "aaaa" for example then, modify it again in "Admin", my select command works (I do not understand why because it is exactly the same name) and I manage to login to frontend.
Does anyone have a solution to this problem or has encountered it before?
I'll tell you what I'm trying to do:
I installed a rocky linux 8 properly, installed a MariaDB 10.6.7 as well as the zabbix 6.0 packages.
An installation from scratch.
I then recover my old database which was in UTF8.
I modify my zabbix_server.conf and zabbix_conf.php files
Then I start my zabbix-server to upgrade the database
I check that the update is going correctly with this command :
cat /var/log/zabbix/zabbix_server.log | grep database
Once the database is updated, I turn off my zabbix server in order to switch my tables to utf8mb4 :
Code:
mysql -u'zabbix' -p'passwordDB' 'zabbix' alter database zabbix character set utf8mb4 collate utf8mb4_bin; SELECT @@character_set_database, @@collation_database; exit mysql -u'zabbix' -p'passwordDB' 'zabbix' < /utf8mb4_convert.sql mysql -u'zabbix' -p'passwordDB' 'zabbix' SET @ZABBIX_DATABASE = 'zabbix'; set innodb_strict_mode = OFF; CALL zbx_convert_utf8(); set innodb_strict_mode = ON; drop procedure zbx_convert_utf8; exit
Code:
mysql -u'zabbix' -p'passwordDB' zabbix -e "show create table history;" wget https://git.zabbix.com/projects/ZBX/repos/zabbix/raw/database/mysql/double.sql mysql -u'zabbix' -p'passwordDB' zabbix < double.sql mysql -u'zabbix' -p'passwordDB' zabbix -e "show create table history;"
When I try to log in with the Admin account, it shows me this error message:
Incorrect username or password or the account is temporarily blocked.
After checking, in the database logs, I see my query pass which does a SELECT on the Admin user (normal thing)
When I do the select, it doesn't retrieve anything. I understand that there is a problem with the database.
If I modify the variable username of Admin" in "aaaa" for example then, modify it again in "Admin", my select command works (I do not understand why because it is exactly the same name) and I manage to login to frontend.
Does anyone have a solution to this problem or has encountered it before?
Comment