I have been trying to import Database through phpMyAdmin. My database file is a.sql
and it's size is 1.2 GB
I am trying to import this on local and phpMyAdmin is saying:
You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.
Please help I really need this to work.
Use command line :
where MYDATABASE.sql is your sql file.
to import big database into phpmyadmin there are two ways 1 increase file execution size from php.ini 2 use command line to import big database.
You no need to edit
php.ini
or any thing. I suggest best thing as Just use MySQL WorkBench.JUST FOLLOW THE STEPS.
Install MySQL WorkBench 6.0
And In "Navigation panel"(Left side) there is option call 'Data import' under "MANAGEMENT". Click that and [follow steps below]
"dump"[simple]
.for ubuntu 14.04 use this:
You have three options:
Here is what I've done:
C:\xampp\php
php.ini
using your text editor, preferably you can also you Notepad for Windows machine.upload_max_filesize = 128M
post_max_size = 128M
max_execution_time = 300
max_input_time = 60
Done!