MySQL server has gone away in wampserver

1.5k Views Asked by At

I try to import a csv file into phpmyadmin using wampserver.

I created the db and I go to import option.

I select the file which is 26MB.

I select to keep the line as the name of values.

Finally I receive this:

#2006 - MySQL server has gone away

How can I import the file?

1

There are 1 best solutions below

0
On

You can use command to import tables into database as below :

mysql -uUSERNAME -pPASSWORD -hHOSTNAME DATABASENAME < FILEPATH

FilePath must be like : /home/xxx/Desktop/abc.sql `