Hello.
Actually, the problem. My zabbix server does automatic database backups every day. I decided to move to another virtual machine, the necessary packages are installed. Clean zabbix works.
We migrate.
1. phpmyadmin dropped all tables.
2. Create mysql user for backup and restore. This is my personal need.
3. Copy old database to new zabbix, and wait...some several tens of minutes...
4.
5. Error message that the database (5ххххххххх many numbers) is old and does not fit the new zabbix version. However, the database itself was updated and the page opened. I didn't do anything myself.
6. Ok lets restart OS
7. I can't log into my accounts. Attempts to restore access by resetting passwords and changing the default authentication did not bring results. Incorrect username or password or account temporarily suspended.
Any advice?
With respect.
Actually, the problem. My zabbix server does automatic database backups every day. I decided to move to another virtual machine, the necessary packages are installed. Clean zabbix works.
We migrate.
1. phpmyadmin dropped all tables.
2. Create mysql user for backup and restore. This is my personal need.
Code:
create user backup@localhost identified by 'readonly'; grant all privileges on *.* to backup@localhost; flush privileges; quit
Code:
gunzip < /root/zabbixDB.sql.gz | mysql -u backup -preadonly zabbixDB
Code:
systemctl restart zabbix-server
6. Ok lets restart OS
7. I can't log into my accounts. Attempts to restore access by resetting passwords and changing the default authentication did not bring results. Incorrect username or password or account temporarily suspended.
Code:
mysql -u root -p
use zabbixDB
update zabbixDB.config set authentication_type='0' where configid='1';
update zabbixDB.users set passwd=md5('zabbix') where userid='1';
exit
systemctl restart zabbix-server
With respect.
Comment