Error (near “ON” at position 25) while importing Table for WORDPRESS ( A foreign key Error)

后端 未结 8 1930
野的像风
野的像风 2020-12-23 12:00

I try to import a large file to my Database (WordPress), it shows some error like this:

Error

Static analysis:

1 errors were found during analysis.

    Un         


        
8条回答
  •  滥情空心
    2020-12-23 12:28

    If you are running Wamp, just do the following:

    1. Edit C:\wamp64\bin\mysql\mysql5.7.26\my.ini
    2. Increase the max packet size to 1024: max_allowed_packet = 1024M

    If after this you run into the error

    Script timeout passed, if you want to finish import, please resubmit the same file and import will resume

    Then do the following:

    1. Go to C:\wamp64\alias\phpmyadmin.conf and increase the following values:

    php_admin_value max_execution_time 360

    php_admin_value max_input_time 360

    Credits to RiggsFolly (https://stackoverflow.com/a/20364163/3231884) on the 3rd (optional) step

提交回复
热议问题