Upgrading Magento is a tricky task. Even though the process is somewhat easy, when you find errors that they are not always easy to solve. One of these errors is the 1025 mysql error. This error is related to foreign keys checks.
There is no easy way to solve it. You can try modifying the app/etc/config.xml file, look for the
<initStatements>SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0;SET UNIQUE_CHECKS=0;</initStatements>
We’re forcing magento to don’t check foreign keys when it works. This could work. It didn’t in my particular case.
The thing is that if I update from 1.8 to:
- 1.9 » got 1025 mysql error
- 1.10 » got 1025 mysql error
- 1.11 » got 1025 mysql error
When I had almost lost hope I tried the 126.96.36.199 version… and it worked! Ok, this has no sense at all. But the lesson I learnt was: try everything before giving up when upgrading magento.