If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

PHPMyAdmin Large File Upload Issue

Hi Everyone, I hope someone can advise here - we have an opportunity to work with a large company who need data extracting from a database with 700,000 records in it. We have a meeting on Friday which could be make or break for our company.

We have been trying to import an 80 MB csv file into a MySQL database using phpmyadmin and it's taking a very long time to upload the file. We have tried every variant of csv file that we can think of and they all either take ages to upload or just crash. When we have managed to upload a file, a simple query takes 15 minutes or more to run.

The table has 22 columns, are we expecting too much from phpmyadmin and mySQL or should this be a simple job for it? Any advice would be greatly appreciated.

Yep, 80MB is big. That could be rejected by PHP itself. You should be able to configure these directives in PHP.ini as well. You need to look for POST_MAX_SIZE, UPLOAD_MAX_FILESIZE, MEMORY_LIMIT, and set the set_time_limit to increase the timeout. These all need to be larger than the file, and POST_MAX_SIZE should be > UPLOAD_MAX_FILESIZE (and MEMORY_LIMIT needs to be > POST_MAX_SIZE). And these are just the limitations with the PHP itself, I haven't a clue if phpmyadmin has any of its own.

All and all, why not just execute a command line call to the mysql dbms and provide it the file that way?

PHP Code:

header('HTTP/1.1 420 Enhance Your Calm');

Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

Users who have thanked Fou-Lu for this post:

Thanks for the response and advice. We tried all of your suggestions but in the end I think phphmyadmin as the weak link. MySQL workbench came to the rescue and all our slow upload and query issues vanished. If anyone else if having these issues I would highly recommend the switch.

Thanks for the response and advice. We tried all of your suggestions but in the end I think phphmyadmin as the weak link. MySQL workbench came to the rescue and all our slow upload and query issues vanished. If anyone else if having these issues I would highly recommend the switch.

Yep, there's really no need to even use the phpmyadmin.
Although, I have installed it within the past few months on my home machine just to see what people are talking about when they have questions about it. It seems to be great for minor modifications and overall viewing, but with lack of being able to do easily view the related data, I may as well just stick with the command line. There was also one structural change I couldn't do from the phpmyadmin. It was removal of something, not a column or anything like that, but I can't remember what it was. Had to do it from the command line.

PHP Code:

header('HTTP/1.1 420 Enhance Your Calm');

Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)