Home  >  Article  >  Backend Development  >  Solution to phpmyadmin import (import) file limitation_PHP tutorial

Solution to phpmyadmin import (import) file limitation_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:42:38776browse

I searched the Internet for previous solutions, and most of them said to modify upload_max_filesize in php.ini. However, after modifying this, the problem was still prompted; but when phpmyadmin prompted this problem, there was a line of English prompts in the lower right corner, The general meaning is 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 is that when encountering a file that is too large to be imported, first check the php.ini configuration file The following three places, upload_max_filesize, memory_limit and post_max_size, and it is recommended to modify the value slightly larger than the imported 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 displays the maximum import limit: 20,480 KB, the huge 80M database file has been successfully imported.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320942.htmlTechArticleI searched the Internet for previous solutions. Most of them said to modify upload_max_filesize in php.ini, but After modifying this, the problem is still prompted; but phpmyadmin prompts this...
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