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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

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

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),