I'm using the 4.4 appliance and I want to move to a new VM for 5.x. I'm following this guide; https://gist.github.com/mwalczak/9807459
EDIT; -p parameter is DB to dump, not the password. Further notablespace appears to be required now for the process error
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
First off my DB appears to be 3.2G
I had been running this command to backup the DB I found on another guide
Unfortunately that looks like it doesn't work as it completes instantly and the file it puts out is way too small
Going by the command in that guide appears to have syntax problems because it's trying to dump a database by the name of my zabbix password. Maybe I don't know what account password it is asking for because it throws an error on that too
Last thing I tried was this
What the heck do I actually have to do to get a db dump of this thing?
EDIT; -p parameter is DB to dump, not the password. Further notablespace appears to be required now for the process error
Code:
mysqldump -u zabbix -p zabbix --no-tablespaces > ~/backups/zabbix-$(date +%F).sql
First off my DB appears to be 3.2G
Code:
sudo du -shc /var/lib/mysql/zabbix 3.2G /var/lib/mysql/zabbix 3.2G total
Code:
mysqldump --all-databases --single-transaction --quick --lock-tables=false > ~/backups/full-backup-$(date +%F).sql -u zabbix -p password
Code:
~/backups$ ls -l total 8 -rw-rw-r-- 1 appliance appliance 203 Aug 13 09:02 full-backup-2020-08-13.sql
Code:
mysqldump -u zabbix -p password > /tmp/zabbix_db_dump Enter password: mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces mysqldump: Got error: 1044: Access denied for user 'zabbix'@'localhost' to database 'password' when selecting the database
Code:
appliance@zabbix:~/backups$ mysqldump --all-databases > ~/backups/full-backup-$(date +%F).sql -u zabbix -p password appliance@zabbix:~/backups$ ls -l total 4 -rw-rw-r-- 1 appliance appliance 203 Aug 13 09:29 full-backup-2020-08-13.sql appliance@zabbix:~$ du -shc backups 8.0K backups 8.0K total
Comment