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...