I have just restored a backup taken from xtrabackup (only for testing, so not critical luckily), and I am getting the following error:
InnoDB: Error: log file ./ib_logfile0 is of different size 0 125304832 bytes than specified in the .cnf file 0 262144000 bytes!
So I updated my my.cnf file to match this value:
[mysqld]
. . .
innodb_log_file_size = 125304832
But I am stil getting an error:
log file ./ib_logfile0 is of different size 0 125304832 bytes than specified in the .cnf file 0 124780544 bytes!
But my my.cnf file is now set to 125304832
bytes so why does MySQL still think it is only 124780544
bytes?
Cannot initialize created log files because data files are corrupt, or new data files were created when the database was started previous time but the database was not shut down normally after that.
. I think that maybe there is some issue with the backup itself so I'll try a different one and see what happens.