Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allowed Memory size exhausted

I have wamp and change configuration in php.ini still show below error while importing zip sql file to database in phpmyadmin

Allowed memory size of 67108864 bytes exhausted (tried to allocate 69931615 bytes) in C:\wamp\apps\phpmyadmin3.5.1\libraries\zip_extension.lib.php

I have changed following to php.ini:

upload_max_filesize = 32M

memory_limit = 64M

post_max_size = 120M

I have zip file to imort is size of 16.1 MB

like image 433
CodeManiac Avatar asked Dec 10 '25 00:12

CodeManiac


1 Answers

Well, change it again.
A 16.1 MB zip may contain a 120MB SQL file. And PHPmyAdmin may want some for itself.

Just set your memory_limit to 512M or try to import files of lesser size.

Another opportunity is to unzip your file manually and then feed it to mysql console app or Sypex Dumper

like image 78
Your Common Sense Avatar answered Dec 11 '25 14:12

Your Common Sense



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!