Unrecognized keyword. (near "ON" at position 25)

This error appear when we try to import database. Here how to fix:-

1) Changing php.ini at C:\xampp\php\php.ini

max_execution_time = 600
max_input_time = 600
memory_limit = 1024M
post_max_size = 1024M

2) Changing my.ini at C:\xampp\mysql\bin\my.ini

max_allowed_packet = 1024M