In this tutorial i’m going to solve Error (Missing expression near “ON” at position 25) while importing Table for WORDPRESS ( A foreign key Error). So follow this tutorial i have solve this issue in this tutorial.
Some time When we import the large database file then shows the errors like as below:
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/mysql-error-1024x576.jpg)
1st step
Xampp stop
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-2-1024x379.png)
2nd step go to below path
C:\xampp\mysql\bin
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-3-1024x420.png)
3rd step search below code and replace as define below
max_allowed_packet=1M
Change code
max_allowed_packet=1024M
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/image-4-1024x405.png)
Save and exit.
4th step
Restart the xampp and go to phpyadmin and drop all table whatever you have uploaded before, and upload again then your problem has been solved.
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/11/9c3910d6-289f-4421-9239-5705fbe1983e-1024x387.jpg)
Thanks for learning 👍👍