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
Just specifying the above answer from Candle.
You will need to adjust only one line in my.ini:
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.
If you are running Wamp, just do the following:
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:
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