简体   繁体   中英

excute query with large data in phpmyadmin

我有一个大文件要插入phpmyadmin中,我编写了一个查询,该查询从文件读取并插入db,它工作正常,但仅插入约65行,然后停止。

It might be a case of execution time out for php. Can you have a try setting up the max_execution_time through set_time_limit function.

When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out.

Warning: This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.

http://php.net/manual/en/function.set-time-limit.php

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