Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import table in phpmyadmin? I got error of file size

Tags:

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....

like image 506
User1988 Avatar asked Dec 27 '11 12:12

User1988


People also ask

How do I import a large database?

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.


2 Answers

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.

like image 165
Shreekanth Gaanji Avatar answered Sep 20 '22 18:09

Shreekanth Gaanji


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..

like image 26
jogesh_pi Avatar answered Sep 21 '22 18:09

jogesh_pi