In Linux system:
First: sql The 2M file upload limit is a feature that has troubled me for many years.
See clearly, modifying php.ini directly will take effect, but the file must be modified correctly. It is php.ini in the apache directory. On Linux, it is /etc/php5/apache2/php.ini
The first step is to find uplod_max_filesize in the PHP.ini configuration file, and change the default 2M to the size of the file you want to import, such as 15M
The second step is to find post_max_size in the PHP.ini configuration file. Change the default 8M to the size of the file you want to import, such as 15M
The third step, find memory_limit in the PHP.ini configuration file, change the default 128M to the size of the file you want to import, if it is already larger than the imported file Size, do not change it
Complete, you can import files larger than 2M
If it is a Mac system:
sudo cp /etc/php.ini.default /etc/php.ini --- 复制一份PHP的配置文件到etc目录
Then restart Apache
sudo apachectl restart