How to fix “Script timeout passed, if you want to finish import, please resubmit the same file and import will resume.”

In this Article we have show How to fix “Script timeout passed, if you want to finish import, please resubmit the same file and import will resume” error. We are going to import database file that will be “200mb ” file size and In this article we are using xampp localhost server and importing the database file into phpmyadmin.

Why its getting?

Whenever we have importing a large database file in phpmyadmin and its getting error the logic is behind this database having some time out limits for execution (maximum execution) the script, but in large database, it exceeds the execution time out limit, and it getting “Script timeout passed, if you want to finish import, please resubmit the same file and import will resume” error. On xampp server default execution time limit is 300s for each script but for large database file it takes too much time compared to default execution time.

Solutions

As you know if we are importing a large database file size through phpmyadmin then firstly you will make sure to update these limits. For increasing the limits Go to “C:\xampp\php\php.ini” and set the limits according to your need then saved it.

max_execution_time = 3000
max_input_time = 60000
memory_limit = 12800M
post_max_size = 4094M
upload_max_filesize = 4094M
max_file_uploads = 200

Now its time to increase the timeout limit 300s to infinity.

After updating the changes Go to C:\xampp\phpmyadmin\libraries\config.default.php and open into code editor And find “$cfg[‘ExecTimeLimit’] = 300;” it and make it value “$cfg[‘ExecTimeLimit’] = 0;” & save it.

$cfg['ExecTimeLimit'] = 300;  update the value into 0
$cfg['ExecTimeLimit'] = 0;

After making the changes, reboot the localhost server and re-import the database file. This time it has been imported successfully.

Importing through MySql command line

You can also use the mysql command line to import the large database file, before opening the command line you have to make changes in the configuration file that we did before in phpmyadmin.

Step 1:- Open the shell command.

Step 2:- just follow the given command and enter the user password

mysql -u username -p database_name < databse_file.sql

Sometimes it’s getting an error just ignoring it. After taking some time, it’s imported successfully.

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
http://www.spinachbase.org/https://duniapermainan.id/https://borobudur.site/https://beritamakan.xyz/http://lesfergusonjr.com/https://www.drafthorsejournal.net/https://ajudanze.us/https://soykb.org/https://www.laoplazahotel.com/https://bidpropamkaltara.com/https://www.inmercociudades.org/https://hanomantoto.vip/https://togeljackpot.bio/https://wsf2024nepal.org/https://www.ha-software.com/https://www.demo.mimikakab.go.id/https://www.aveironet.com/https://motocofservice.com/https://missglobalnigeria.com/https://gilchristfliegen.com/https://borobudurbet-com.net/https://auroratotosatu.net/https://auroratoto-2.com/https://portalberitaberitaindo.web.id/https://berita69.web.id/https://otomotif188.web.id/https://otomotifku.web.id/https://wawasannusantara.web.id/https://universitasterbuka.web.id/https://komunitaswni.web.id/https://wartacpns.web.id/https://langkahmaxwin.web.id/https://indomaret.biz.id/https://lowongankerja-1.biz.id/https://dppkbpmd.belitung.go.id/https://totocosmic.net/https://pascageo.fis.unp.ac.id/"https://mik.co.id/"