WAMPServer phpMyadmin超过360秒的最大执行时间 [英] WAMPServer phpMyadmin Maximum execution time of 360 seconds exceeded
问题描述
我刚刚安装了WampServer.当我访问我的项目页面时,它可以工作,但是当我尝试浏览phpMyAdmin时,出现此错误:
I just installed WampServer. It works when I visit my project page but when I try to navigate phpMyAdmin i get this error:
最长执行时间超过360秒
Maximum execution time of 360 seconds exceeded
出什么问题了?
推荐答案
一种更好的解决方案是更改控制phpMyAdmin而不是php.ini
文件的配置.
A better solution here is to change the config that controls phpMyAdmin and not the php.ini
file.
如果更改php.ini
文件,则会影响PHP的所有工作,并且您应该编写一个我们不时进行的无限循环,终止您的无限循环将比明智的花费更长的时间.
If you change the php.ini
file you effect everything in PHP and should you write that infinite loop that we all do from time to time it will take longer to terminate your infinite loop than is sensible.
注意:如果您使用的是64位WAMPServer,则基本文件夹名称将为wamp64
而不是wamp
,因此请相应地修改以下文件夹名称.
Note: If you are using the 64bit WAMPServer the base folder name will be wamp64
instead of wamp
so please amend the below folder names accordingly.
因此更改\wamp\alias\phpmyadmin.conf
.尽管您的phpMyAdmin版本可能会有所不同,但是默认情况下它将看起来像这样:
So change \wamp\alias\phpmyadmin.conf
. By default it will look something like this although your version of phpMyAdmin will probably be different:
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/"
<Directory "c:/wamp/apps/phpmyadmin4.1.14/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</IfDefine>
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
要延长导入数据库的最大时间限制,请更改php_admin_value max_execution_time
参数.您可能还需要更改其他参数,因为较大的数据库往往会包含在较大的文件中,并且读取时间也较长.示例:
To extend the maximum time limit for importing a database, change the php_admin_value max_execution_time
parameter. You may also need to change the other parameters as larger databases tend to come in larger files and take longer to read as well. Example:
php_admin_value upload_max_filesize 1024M
php_admin_value post_max_size 1024M
php_admin_value max_execution_time 1800
php_admin_value max_input_time 1800
在对该文件进行更改后,不要忘记重新启动Apache .
Don't forget to restart Apache after making changes to this file.
这篇关于WAMPServer phpMyadmin超过360秒的最大执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!