Home > Backend Development > PHP Tutorial > How to solve the problem of size limit for importing large sql files into MySQL

How to solve the problem of size limit for importing large sql files into MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-30 13:30:10
Original
1189 people have browsed it

The solution process is as follows:

1. Since mysql can parse sql compressed files, 200M is compressed to 5M.

2. By default: MySQL import file size is limited, the maximum is 2M, so when the file is very large, it cannot be imported directly. You can modify the php.ini parameter adjustment:

Modify the relevant parameters in php.ini:

There are three parameters that affect the size of MySQL import files:,

memory_limit=128M, upload_max_filesize=2M, post_max_size=8M

The above introduces the solution to the problem of MySQL importing large sql file size limit, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template