Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. 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 am having a big sql file( 16mb) and all i need is to upload it to the Phpmyadmin to work with it in my localhost. I'm a newbie here in Php/MySql and i want to know about the details regarding the work.So, please suggest me the best.

Cheers and waiting for response.

share|improve this question

migrated from Oct 3 '12 at 11:38

This question came from our site for professional and enthusiast programmers.

Would suite on – mtk Oct 3 '12 at 8:03

Maximum file size you can upload is specified in your php.ini [ the configuration file for php ]. You would like to look for upload_max_filesize = 2M and change it to something else, for example 20M. You can also try to compress your file size, phpadmin accepts many different archives, like zip, gz etc.

share|improve this answer
many thanks for ur response. As i mentioned i'm a newbie so not so many knowledge in Php but Java :) ok, i'm going through it and getting back to you. – Rajdeep Roy Oct 3 '12 at 8:58
@mkk - i can't find any php.ini file there..what i hav is the only database and the now what to do next? – Rajdeep Roy Oct 3 '12 at 18:33
@RajdeepRoy you might find this answer useful - it should help you localize php.ini . If it will not help you, please come back to me. It will be useful to know what OS you are using – mkk Oct 3 '12 at 20:56
@mkk- what i have is one folder with DB tables, another one with some php pages and finally the sql file (which is 16mb)..and nothing please tell me how to get that sql file run in my localhost...i m using win-7 as my in Php :P..thatz the best i can say :)--- Awaiting response deeply – Rajdeep Roy Oct 4 '12 at 3:38
@RajdeepRoy do you really need to use phpmyadmin after that? Can't you just write in the comand line mysql -u *username-probably_root* -p *your_database_name* < *sql_file* ? If you do not have password you do not need to use -p option. That will be simpler approach :) – mkk Oct 4 '12 at 7:46

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.