Search code examples
databasemysql-workbenchmysqlmysql-error-1064

How to import mySQL dump file into MySQL lower version?


On My local machine has mysql version 5.7 and web hosting has a lower version of mySQL. Below is a screenshot of my hosting version mysql information.

Please tell me how to Export so that it should be compatible with my hosting Server version ? I am using workbench

MySql webhosting information This is the error

enter image description here

however there is no syntax error when I try to import on same machine


Solution

  • Just replaced all incompatible syntax with MySQL 5.5 syntax, It was harsh to do it with plain editors , so I worte my own console application to convert it, Anyway if someone face this issue , Try replacing each and every incompatible syntax with 5.5 syntax :P