Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the memory limit set to 128M in php.ini and all I try to do is just upload a Excel 2007 sheet of size 130KB, which contains only 100 rows. The error message in apache log reads:

[Mon May 09 11:09:00 2011] [error] [client] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /usr/share/phpmyadmin/libraries/PHPExcel/PHPExcel/Cell.php on line 155, referer:
share|improve this question
up vote 1 down vote accepted

I personally never tried to import from Excel, just a suggestion,why don't you first try to export to CVS first then import it to MySQL

share|improve this answer
Thanks for the great tip. Export to CVS and then it imports with no problem. – Tong Wang May 9 '11 at 4:36
Sorry, I can't vote up your answer because I don't have enough reputation now. But will do in the future when I can. – Tong Wang May 9 '11 at 4:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.