Home > Database > phpMyAdmin > body text

The sql file is too large and cannot be imported into phpmyadmin

王林
Release: 2019-12-28 14:29:09
Original
2010 people have browsed it

The sql file is too large and cannot be imported into phpmyadmin

1. Open php.ini.

Find these three parameters upload_max_filesize, memory_limit, post_max_size!

(By default, phpmyadmin only allows the maximum upload data to be 2M, and the maximum memory usage memory_limit is only 128M, and the maximum number Post is also Only 2M)

2. Make the following changes according to the actual performance configuration of your server:

upload_max_filesize = 8M

memory_limit = 512M

post_max_size = 8M

3. Modify the $cfg['ExecTimeLimit'] configuration option in the phpmyadmin configuration file config, default The value is 300 and needs to be modified to 0, which means there is no time limit.

4. Modify $memory_limit in the import page in the root directory of the phpmyadmin installation

as shown below:

The sql file is too large and cannot be imported into phpmyadmin

Description: First choice Read the memory configuration option memory_limit in the php.ini configuration file. If it is empty, the default memory size limit is 2M. If there is no limit, the memory size is limited to 10M. You can modify it based on the relevant information in your php.ini configuration file. this code.

5. After the modification, restart the server and re-execute the import command

Import has been successfully finished, 399 queries executed.
Copy after login

Recommended related articles and tutorials: phpmyadmin tutorial

The above is the detailed content of The sql file is too large and cannot be imported into phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!

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