标签:
phpMyAdmin从计算机导入文件的限制为128M,当要导入的文件超过了这个限制的时候,就需要设置一下,有两个方法,
一 . 从网站服务器上传文件夹 ImportSQLFile/ 中选择。具体步骤:
二 . 修改phpmyadmin.conf:
具体文件在wamp安装路径/alias/文件夹下,内容为
Alias /phpmyadmin "d:/wamp/apps/phpmyadmin4.1.14/" # to give access to phpmyadmin from outside # replace the lines # # Require local # # by # # Require all granted # <Directory "d:/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 upload_max_filesize后的参数。
ps:一般上传较大文件时,不仅仅存在上传文件的限制,还有上传时间的限制,所以建议同时修改php_admin_value max_execution_time后的参数。
标签:
原文地址:http://www.cnblogs.com/endlessl/p/5647502.html