Home > php教程 > php手册 > body text

如何解决phpmyadmin导入数据库文件最大限制2048KB

WBOY
Release: 2016-06-06 19:41:19
Original
879 people have browsed it

这篇文章主要介绍了如何解决phpmyadmin导入数据库文件最大限制2048KB的相关资料,需要的朋友可以参考下

解决办法如下:

1、打开php.ini。找到 upload_max_filesize 、 memory_limit 、 post_max_size 这三个参数!
(在默认的情况下,php只允许最大的上传数据为2M,也就是2048KB,而极限的最大使用内存memory_limit也仅为128M,,Post的最大也为2M)

2、按您的服务器的实际性能配置进行如下改动:(注意:以下是按我的服务器性能有硬件配置进行的更改..)

upload_max_filesize = 20M (上传最大极限设定为8M,这个应该足够一般的文件WEB上传了)

memory_limit = 512M (因为服务器的内存为2GB,所以这里加到512M不过份吧,呵)

post_max_size = 20M (Post数据最大也设置为8MB,这个跟upload_max一样)

3、改完之后,我再重新执行导入命令后:

Import has been successfully finished, 399 queries executed.
(显示导入成功,有多少个请求处理成功…)

脚本之家友情提醒:改完php.ini后,不要忘了重启下web服务或者服务器哦,重启之后方可生效。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!