kamal213 Posted August 22, 2011 Share Posted August 22, 2011 Hi Guys, I'm try to import a 1.7MB excel file in phpmyadmin but to no avail as it exceeds the max limit. I also have tried converting it to an CSV file but it says my field names are too long. Is there a way I increase the limit size in phpmyadmin to help me or any other ideas or am I just pretty much doomed? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/245410-import-a-17mb-excel-file-in-phpmyadmin/ Share on other sites More sharing options...
kamal213 Posted August 22, 2011 Author Share Posted August 22, 2011 Apologies I forgot to add that am using a xampp server as well. Thanks for you help Quote Link to comment https://forums.phpfreaks.com/topic/245410-import-a-17mb-excel-file-in-phpmyadmin/#findComment-1260425 Share on other sites More sharing options...
Muddy_Funster Posted August 22, 2011 Share Posted August 22, 2011 I am not aware of any file size restrictions on PHPMyAdmin for imports. What's the error you're getting? Quote Link to comment https://forums.phpfreaks.com/topic/245410-import-a-17mb-excel-file-in-phpmyadmin/#findComment-1260442 Share on other sites More sharing options...
kamal213 Posted August 22, 2011 Author Share Posted August 22, 2011 Thanks for your reply. Heres the error: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 69 bytes) in C:\xampp\phpMyAdmin\libraries\PHPExcel\PHPExcel\Worksheet.php on line 983 Quote Link to comment https://forums.phpfreaks.com/topic/245410-import-a-17mb-excel-file-in-phpmyadmin/#findComment-1260449 Share on other sites More sharing options...
Muddy_Funster Posted August 22, 2011 Share Posted August 22, 2011 ok, that error relates to 256MB of memory space, so it's likely a buffer issue. I don't know what it would be using anything like that for a 1.7MB file insert though. Check you buffer size settings in your php.ini file and see if thjere is anything in there, be carefull though, you could bugger performance if you set them to crazy sizes. Quote Link to comment https://forums.phpfreaks.com/topic/245410-import-a-17mb-excel-file-in-phpmyadmin/#findComment-1260451 Share on other sites More sharing options...
kamal213 Posted August 22, 2011 Author Share Posted August 22, 2011 Kool I'll give it a go - fingers crossed it works Thanks Quote Link to comment https://forums.phpfreaks.com/topic/245410-import-a-17mb-excel-file-in-phpmyadmin/#findComment-1260464 Share on other sites More sharing options...
The Little Guy Posted August 22, 2011 Share Posted August 22, 2011 you don't change max size through phpmyadmin, it is done in your ini file, you need to change your php ini file to allow for larger imports, and you will need to change the php max memory in there too. Once you save your ini file, shut down Apache and start it back up, your settings should not take affect. Quote Link to comment https://forums.phpfreaks.com/topic/245410-import-a-17mb-excel-file-in-phpmyadmin/#findComment-1260541 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.