Home  >  Article  >  Database  >  The sql file is too large and cannot be imported into phpmyadmin

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

王林
王林Original
2019-12-28 14:29:091980browse

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.

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!

Statement:
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