How does MySQL modify the size limit of imported database files?

Source: Internet
Author: User

This article describes how to modify the size limit when importing a database. When I use phpMyAdmin to import a MySQL database, a database of 15 MB cannot be imported, and a MySQL database can only be imported up to 2 MB ..

An error occurred while importing the phpMyAdmin database:
You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.

Can I modify the maximum limit of imported database files? Yes!

To solve this problem, you can refer to the phpMyAdmin document. Click this link and phpMyAdmin will automatically find the following instructions:

The first things to check (or ask your host provider to check) are the valuesUpload_max_filesize, memory_limit and post_max_sizeIn 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 above file roughly indicates that when a large file is imported, first check PHP. upload_max_filesize, memory_limit, and post_max_size in the following three parts of the ini configuration file. We recommend that you modify the value slightly greater than the imported large SQL database file. Follow this prompt, modified the above three in PHP. after the value in ini, the PHP environment is restarted. When the database file is imported again, it is successfully imported.

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.