Home >Backend Development >PHP Tutorial >Solution to import file restrictions in phpmyadmin

Solution to import file restrictions in phpmyadmin

WBOY
WBOYOriginal
2016-07-29 08:41:26964browse

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 means that when encountering 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 to modify the value to be slightly larger than upload_max_filesize. Imported huge sql database file; following this prompt, after I modified the above three values ​​in php.ini, I restarted the php environment. When importing again, although phpmyadmin still displayed the maximum import limit: 20,480 KB, but the huge 80M The database file has been successfully imported.

The above introduces the solution to the import file limitation of phpmyadmin, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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