I had a mysql server running on a Mac. Unfortunately, the Mac died. However, I got a backup. I am now trying to restore the server on a Linux machine.
I have moved the mysql files located in /usr/local/var/mysql on the linux.
I gave full 777 permissions to the directly on linux to make sure that I have no permissions issues.
When I try to run the MySQL server, it fails and I get this error in the logs:
InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
When I delete the log files (ib_logfile0, ib_logfile1), I get: http://pastebin.com/rYMti8DK
Do you have any idea how I can restore my database correctly?
You need to use the same MySQL configuration on the Linux system as you used on the Mac. The error message in your question comes because InnoDB log file settings are different in your Linux.