Modify the size limit of SQL files imported by phpMyAdmin_PHP Tutorial

WBOY
Release: 2016-07-13 10:32:58
Original
763 people have browsed it

When using phpMyAdmin to import mysql database, my 19M database cannot be imported. It prompts that the maximum mysql database can only be imported is 2M.

phpMyAdmin database import error:

You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.

Can the maximum limit of imported database files be modified?

I searched the Internet for previous solutions. Most of them said to modify the upload_max_filesize in php.ini. However, after modifying this, this problem is still prompted; but when phpMyAdmin prompts this problem, there is a line in the lower right corner. The English tip basically means that to solve this problem, you can refer to the phpMyAdmin documentation; click this link directly, and phpMyAdmin will automatically find the following instructions:

[1.16] I cannot upload big dump files (memory, http or timeout problems).
Starting with version 2.7.0, the import engine has been re–written and these problems should not occur. If possible, upgrade your phpMyAdmin to the latest version to take advantage of the new import features.

The first things to check (or ask your host provider to check) are the values ​​of upload_max_filesize, memory_limit and post_max_size in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP. One user also said that post_max_size and memory_limit need to be larger than upload_max_filesize.

The general description of the above file means that when you encounter a file that is too large to be imported, first check the following three places in the php.ini configuration file, upload_max_filesize, memory_limit and post_max_size, and it is recommended that the modified value be slightly larger than the imported one. Huge sql database file; following this prompt, I modified the above three values ​​in php.ini and restarted the php environment. When importing again, although phpMyAdmin still displayed the maximum import limit: 20,480 KB, it was a huge 80M database file. has been successfully imported.

The higher version of phpMyAdmin can correctly display the maximum limit, usually the value of post_max_size.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/752590.htmlTechArticleWhen using phpMyAdmin to import the mysql database, my 19M database cannot be imported. It prompts that the maximum mysql database can only be imported to 2M. phpMyAdmin database import error: You probably tried to uplo...
Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template