![]()
I was dumping a database today to put onto a different server. I am currently running 5.1.45 locally, and the server I am moving to has 5.0.58. When trying to import the database to the new server, I was getting the following error:
ERROR 1064 (42000) at line 576: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USING BTREE,
KEY `FK_ATTRIBUTE_VARCHAR_ENTITY` (`entity_id`),
KEY `FK_CATALO' at line 9
After doing some checking around, I found that the problem was the ‘USING BTREE’. Mysql 5.0 and lower doesn’t seem to understand what that is about and will fail. The solution: Just remove ‘USING BTREE’, and you’ll be good to go.
It sounds like versions after mine (5.1.45) have fixed this and omit the ‘USING BTREE’ from the dumps.
Pingback: Mysql: USING BTREE – Error when dumping from 5.1 and importing to … | Error Resolve | Errors | Software | Hardware | MSSQL | MySQL | .NET | PHP | Asp.NET