Forum Moderators: coopster

Message Too Old, No Replies

PHP Fatal error: Allowed memory size of

         

youfoundjake

5:02 am on Apr 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 393216 bytes) in I:\wamp\apps\phpmyadmin2.11.5\libraries\common.inc.php on line 769

I have a 150mb csv text file that I need to import into MySql, 1 table, 3 columns.
First I tried doing it through phpmyadmin, but received an error that I didn't have enough resources. So i checked out the configuration manual and it recommended the below changes in php.ini

I have changed
memory_limit = 512MB (default was 128)
post_max_size = 150M (default was 8)
upload_max_filesize = 150M (default was 8)

That didn't work so I also added:
php_value memory_limit 32000000
to my .htaccess file but that didn't work.

Then I also added
ini_set("memory_limit","24M");
to index.php for the site I'm working on:
http://example.com/phpmyadmin/

That did not work either. The odd thing is that I put everything back to default and now I'm still getting the same message, even after restarting all the services.

I also tried dumping the file manually into a temp folder so that I can import it by using $cfg['UploadDir'] = ''; option, but nope, nothing.

Anyone got any ideas on this?

[edited by: dreamcatcher at 6:33 am (utc) on April 19, 2008]
[edit reason] Use example.com, thanks. [/edit]

youfoundjake

5:18 am on Apr 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



argh, fixed it to read
memory_limit = 12M and now it works

dreamcatcher

6:34 am on Apr 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad you sorted the issue youfoundjake.

dc

youfoundjake

7:12 am on Apr 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



yeah, had to plug away on it, finally figured it out.

coopster

3:09 pm on Apr 21, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yeah, you have to have that shorthand notation syntax [php.net] correct.

youfoundjake

3:43 am on Apr 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's the kicker.. you miss one freakin key stroke and nag nag nag...