I am trying to import database through PHPMyAdmin. My database file is abc.sql and it’s size is 50.9 MB. I am trying this on local and it’s saying:
You probably tried to upload a file that is too large. Please refer to documentation for ways to workaround this limit.
Please Help with this.
2
Answers
Just use mysql CLI –
1) Command Prompt
2)
mysql -uusername -p
(enter password when prompted)3)
use database_name
4)
source C:pathtofile.sql
You can update the maximum upload size from php.ini file.
In the php.ini you need to update the 3 values as per your requirement
Then restart your apache server. You will able to import the database.