Solution to restrictions on importing large files larger than 2 MB in PhpMyAdmin _ PHP Tutorial

Source: Internet
Author: User
Solve PhpMyAdmin's restriction on importing larger files than 2 MB. To solve this problem, we have found that there are two methods: Method 1: Find php. ini searches for the three parts upload_max_filesize, memory_limit, and post_max_size. after some research, we found that there are two methods:

Method 1:

Find php. ini and search for the above three places: upload_max_filesize, memory_limit, and post_max_size.
Modify the values after them to the size of the database you want to import.
Then restart the PHP environment.

Method 2: Take phpMyAdmin-3.1.0-all-languages as an example, my installation directory E: \ wwwroot \ phpMyAdmin \

1. create a directory named upload In The phpmyadmin directory.

2. open phpmyadmin and find E: \ wwwroot \ phpMyAdmin \ config. sample. inc. php file, find and modify it to $ cfg ['uploaddir'] = "upload", and then click save.

Open the E: \ wwwroot \ phpMyAdmin \ libraries \ config. default. php file, find and modify it to $ cfg ['uploaddir'] = "upload", and click save.

3. use FTP to upload the SQL file to phpmyadmin/upload /.

4. access phpmyadmin and click Import. The Select Server File drop-down box is displayed. select the SQL file uploaded over FTP. This is a perfect solution.

Click "import" at http://www.xx.com/phpmyadmin.

Upload Method 1: Find php. ini and search for the three places upload_max_filesize, memory_limit, and post_max_size...

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.