Solution to prompt that the file size exceeds the PHP limit during PHPMyAdmin Import

Source: Internet
Author: User

Solution to prompt that the file size exceeds the PHP limit during PHPMyAdmin Import

This article describes how to solve the problem that the file size exceeds the PHP limit when PHPMyAdmin is imported. The cause is that the PHP Upload size is limited to 2 MB and PHP is modified. ini configuration can solve this problem. For more information, see

 

This problem occurs when the website is migrated because the data is always backed up and restored using PhpMyAdmin. However, as the data on the website grows, the database is also growing, there is still 4 MB of data after compression, and an error message is displayed when you import data in PhpMyAdmin.

The prompt "no data to be imported is received" in PhpMyAdmin. It may be because the file name is not submitted, or the file size exceeds the PHP limit. See FAQ 1.16 .".

After searching through the internet, we found a solution because PHP restricts the size of files to be uploaded to 2 MB by default, and we only need to modify this default limit.

Operation Method: Open the PHP configuration file PHP. ini and search for "upload_max_filesize" to change the default value to 2 MB.

 

If the problem persists after the default value is modified, try the following operations.

Search for memory_limit and post_max_size respectively to modify the value. Of course, the modification is larger.

Memory_limit explanation: Set memory;

Post_max_size explanation: maximum value of submitted data

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.