Home > Backend Development > PHP Tutorial > How to solve the phpmyadmin import database file maximum limit of 2048KB, _PHP tutorial

How to solve the phpmyadmin import database file maximum limit of 2048KB, _PHP tutorial

WBOY
Release: 2016-07-12 09:08:01
Original
1091 people have browsed it

How to solve the phpmyadmin import database file maximum limit of 2048KB,

The solution is as follows:

1. Open php.ini. Find the three parameters upload_max_filesize, memory_limit and post_max_size!
(By default, PHP only allows the maximum upload data to be 2M, which is 2048KB, and the maximum memory_limit is only 128M, and the maximum Post is also 2M)

2. Make the following changes based on the actual performance configuration of your server: (Note: The following are the changes based on my server performance and hardware configuration..)

upload_max_filesize = 20M (The maximum upload limit is set to 8M, which should be enough for general file WEB upload)

memory_limit = 512M (because the server’s memory is 2GB, so adding it to 512M is not excessive, hehe)

post_max_size = 20M (The maximum post data is also set to 8MB, which is the same as upload_max)

3. After making the changes, I re-executed the import command:

Import has been successfully finished, 399 queries executed.
(Shows successful import and how many requests were successfully processed...)

Friendly reminder from Bangkejia: After changing php.ini, don’t forget to restart the web service or server. It will take effect only after restarting.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1058140.htmlTechArticleHow to solve the phpmyadmin import database file maximum limit of 2048KB. The solution is as follows: 1. Open php.ini. Find the three parameters upload_max_filesize, memory_limit, post_max_size...
Related labels:
source:php.cn
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