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

搜索这个标题的朋友其实都不知道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
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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools