简体   繁体   中英

Memory size error when importing sql.zip file into phpmyadmin

I'm having issues importing a sql.zip file into phpmyadmin. When I try to import the file I get the following error:
:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 132382880 bytes) in on line 行的 ,已用完的内存大小为134217728字节(尝试分配132382880字节)

I've gone into the config file and the memory_limit is set to -1 (would it be better to set the limit?) and when I navigate into the export.php file I can't find a reason for the error. As far as I know the export.php file is still default, no one has edited the file. Here's an image of the line (cursor marking line 310)

I've been beating my head against this for ages, any help would be appreciated.

Check this answer https://stackoverflow.com/a/4546797/5458355 . With a terminal, having mysql in your global path, try:

mysql -u <username> -p <databasename> < <filename.sql>

Is faster to import the db from terminal and you must do it if the file is too big... check also your Apache limits for file upload and memory limit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM