Home  >  Article  >  Web Front-end  >  Solution to the problem that PHPMyAdmin prompts that the file size exceeds the PHP limit when importing_javascript skills

Solution to the problem that PHPMyAdmin prompts that the file size exceeds the PHP limit when importing_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:07:122928browse

I encountered this problem when the website was moved, because the data has been backed up and restored using the PhpMyAdmin tool. However, as the website has more and more data, the database is getting larger and larger. After compression, it still remains. There is 4M of data, but when importing the data in PhpMyAdmin, an error message appears.

The picture above shows the prompt in PhpMyAdmin "No data to be imported was received. It may be that the file name was not submitted, or the file size exceeded the PHP limit. See FAQ 1.16.".

After searching on the Internet, I found a solution. The reason is that PHP limits uploaded files to 2M by default, and we only need to modify this default limit.

How to operate: Open the PHP configuration file PHP.ini, search for "upload_max_filesize" and change the default 2M to a larger size.

If changing the default value still does not solve the problem, please try the following operations.

Search memory_limit and post_max_size respectively and modify their values, of course to make them larger.

memory_limit explanation: setting memory;

post_max_size explanation: the maximum value of submitted data;

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