I want to import database in phpmyadmin but i got error like this... "No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration."
my file size is 4.8 mb,
please give me solution....
To import larger databases to your account, upload the database backup copy on your account. Make sure to place the backup file outside the public_html folder so that it is not accessible from a browser. Then you can use the Site Tools -> Site -> MySQL tool.
Follow theses steps
Go to the PHP folder -> search for php.ini
Seach for the below line and change it according to your need.
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Restart the server to confirm changes.
try to edit after change into php.ini :
upload_max_filesize = 10M
post_max_size = 20M
memory_limit = 128M
also change the value of max_execution_time
EDIT: if you want then do all that stuff with command line:
mysql -h[Host Name] -u[User Name] [Database Name]<[SQL File Name] -p
through this you will import the database..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With