Home php教程 php手册 解决PhpMyAdmin中导入2M以上大文件限制方法

解决PhpMyAdmin中导入2M以上大文件限制方法

Jun 02, 2016 am 09:14 AM

搜索这个标题的朋友其实都不知道PhpMyAdmin根本就没有限制导入多大的文件,能导入多大的文件是由我们的php.ini中的三个重要参数给限制了,那么是那三个参数限制了PhpMyAdmin不能导入超出2mb的文件呢?下面我来给大家介绍一下。

首先找到php.ini 修改'upload_max_filesize','memory_limit','post_max_size' 修改这三个值到想要的大小即可,修改后重启apache或IIS 然后再导入SQL文件就可以成功了.

解决办法

查找max_execution_time = 600 ;每个PHP页面运行的最大时间值(秒),默认30秒。

max_input_time = 600 ;每个PHP页面接收数据所需的最大时间,默认60秒 。

memory_limit = 8M ;每个PHP页面所吃掉的最大内存,默认8M。

查找upload_max_filesize ;即允许上传文件大小的最大值。默认为2M

修改c:\phpmyadmin\import.php文件,用写字板打开import.php文件:

1、查找$memory_limit,默认为$memory_limit = 2 * 1024 * 1024; 自己修改.


文章地址:

转载随意^^请带上本文地址!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)