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

后端 未结 8 1879
野的像风
野的像风 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:27

    Just specifying the above answer from Candle.

    You will need to adjust only one line in my.ini:

    1. Changing my.ini at C:\xampp\mysql\bin\my.ini OR click on config of XAMP>select php.ini and change the following:

      max_allowed_packet = 50M // the value depends on the size of the .sql files you are trying upload.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题