Home>Article>Database> How to solve the problem of phpmyadmin uploading larger than 2M

How to solve the problem of phpmyadmin uploading larger than 2M

藏色散人
藏色散人 forward
2021-02-14 10:13:50 3531browse

The following tutorial column ofphpmyadminwill introduce to you how phpmyadmin solves the problem of uploading files larger than 2M. I hope it will be helpful to friends who need it!

How to solve the problem of phpmyadmin uploading larger than 2M

phpmyadmin solves the problem of uploading more than 2M

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

The above is the detailed content of How to solve the problem of phpmyadmin uploading larger than 2M. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete