Home > Database > phpMyAdmin > body text

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

藏色散人
Release: 2021-02-14 10:13:50
forward
3599 people have browsed it

The following tutorial column of phpmyadmin will 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目录
Copy after login

Then restart Apache

sudo apachectl restart
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template