Giving script timeout passed on database import

对着背影说爱祢 提交于 2019-12-10 04:12:12

问题


I am using wamp server.I am trying to import the database in phpmyadmin. but its showing

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

And if i check the database tables only few tables are imported..How to resolve this.Thanks in advance


回答1:


Add following code

$cfg['ExecTimeLimit'] = 0;

in your phpmyadmin config.inc.php and it will solve your timeout problem, this should work on both XAMPP and WAMP




回答2:


Its quite common when importing a database of any size using phpMyAdmin, to blow the max_execution limit that comes with most php installations.

If you want to increase the maximum time allocated to phpMyAdmin rather than to your whole Apache/PHP environment:

In the alias file \wamp\alias\phpmyadmin.conf, just before , you can add

Assuming you have Apache 2.4.x

<Directory "c:/wamp/apps/phpmyadmin4.0.4/">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride all
    Require local
    # Increase runtime 
    php_admin_value max_execution_time 360
    php_admin_value max_input_time 360
</Directory>

Or is you have Apache 2.2.x

<Directory "c:/wamp/apps/phpmyadmin4.0.4/">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 ::1 localhost
    # Increase runtime 
    php_admin_value max_execution_time 360
    php_admin_value max_input_time 360
</Directory>

Of course you could just use the MySQL Console as the console has no limits placed on it by PHP. This command used at the MySQL Console prompt mysql> will load the database dump file and do the restore.

source c:\path\to\your\database\dump\file.sql



回答3:


For xampp : In xampp Folder go phpmyadmin/config.inc.php and set $cfg['ExecTimeLimit'] = 0; same process in wampp




回答4:


For this you have to follow these steps so that you can upload large size database files..click here for more assistance



来源:https://stackoverflow.com/questions/20140679/giving-script-timeout-passed-on-database-import

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!