简体   繁体   中英

Unable to import large size of data to database phpmyadmin

I'm unable to import large size of data to database phpmyadmin

m edited php.ini file for importing large amount of file. But a message showing after some time

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

please help me

If you want to finish import, please resubmit same file and import will resume.

Belive it or not, phpmyadmin can handle this.

Instead of using phpmyadmin use command line tool

open terminal and write

mysql -h host -u username -p

provide password

source /path/to/file

and no time out problem now

Give this a try, it did the job for me in the past. http://www.ozerov.de/bigdump.php

Edit the file: config.inc.php inside phpmyadmin and add the following line (or edit if it exists):

$cfg['ExecTimeLimit'] = 0;

This timeout value is used at the time of import for phpmyadmin which is defined at libraries/config.default.php which is recommended to not to edit. This should solve the script timeout error.

If your data comes from another database, you can use the database synchronization tool / tab that is available in newer versions of phpmyadmin.

That way you won't have to export and then import and you won´t run into the limit file-size limit for phpmyadmin imports.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM