However, database is not properly recognized in some restore attempts
Validation:
Both source and restore servers show:
SHOW DATABASES → centraldb only
Data consistency verified (row count matches)
mysqldump backup/restore works perfectly
Key Checks Already Done:
innodb_file_per_table = ON (both servers)
lower_case_table_names = 0 (both servers)
Datadir correctly configured
Backup contents verified (centraldb present)
Only one MySQL instance running
Permissions set correctly
Error Log Snippet:
“No existing UUID has been found… generating new UUID”
Server upgrade from 8.0.42 to 8.0.45 observed
No major InnoDB corruption errors seen
Concern:
It appears that MySQL initializes a new InnoDB dictionary (possibly due to early startup or redo log mismatch), causing XtraBackup restored data to not be properly recognized, while mysqldump works fine.
Request:
Guidance on ensuring proper InnoDB dictionary recognition after restore
Best practice to avoid UUID / initialization conflicts
Any known compatibility issues between MySQL 8.0.42 → 8.0.45 with XtraBackup 8.0.35
Additional Info (if needed):
Can provide full error logs, backup directory structure, and configuration files.
You can also downgrade the PXB package on the source to match PXB on the destination server. Or you can also download the tarballs from percona.com/downloads to match versions
Mysqldump and rsync are working fine, but xtrabackup fails. During backup/restore, MySQL starts successfully, but in the final stage it throws a “database not available” error.
1)Insatall Percona software
2)Disable Crontab (crontab -u mysq1 -e)
3)create directory using mkdir Mysqlbackup command
4)xtrabackup --backup --target-dir=/backup/Mysqlbackup --parallel=4 --user=root --password=123456
5. Check /backup is mounted in new DB
Restore SERVER
1)Insatall Percona software
2)before restore once again prepar the backup
xtrabackup --prepare --target-dir=/backup/Mysqlbackup (xtrabackup --prepare --target-dir=/backup/Mysqlbackup)
3)sudo systemctl stop mysql
4)sudo rm -rf /media/vdata/mysql/*
5)sudo xtrabackup --copy-back --target-dir=/backup/Mysqlbackup --datadir=/media/vdata/mysql
6)chown -R mysql:mysql /media/vdata/mysql
7)sudo systemctl start mysql
Yes, we have done several backups & restores previously, but in this system it’s not working. For this we have formatted the operating system & checked the result being the same.