Forums / Installing on a Linux/Unix Server / #2006 - MySQL server has gone away Local host when importing to localhost

#2006 - MySQL server has gone away Local host when importing to localhost

Locked

Started by sunflowertami on 7 May 2010, 10:22 PM · Views: 5,339

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
7 May 2010, 10:22 PM
#1
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

#2006 - MySQL server has gone away Local host when importing to localhost

Hi,

I'm trying to bring my live database into my localhost so that I can work on the upgrade and test before going to the live site.

I realize that in 2 years time, the database has gotten large and therefore I'm having problems importing the database into myphp. Everytime it hits the "products" table it goes into an error: #2006 - MySQL server has gone away

Is there anyway around this? Thanks

8 May 2010, 5:34 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: #2006 - MySQL server has gone away Local host when importing to localhost

Assuming that you are attempting this with phpadmin
You might get a "putty" command interface such as "winputty" if on a windows box
and use the following:

mysql database < file.sql

Example:
mysql jsmith_db < db-backup.sql

Zen-Venom Get Bitten

8 May 2010, 1:07 PM
#3
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: #2006 - MySQL server has gone away Local host when importing to localhost

Hi Kobra,

Yes I am using phpMyAdmin 2.6.4-pl1 and I don't see a win putty selection on it?

Did you mean run it on windows? Start-Run-Cmd?

Thanks for your help in advance!

8 May 2010, 3:58 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: #2006 - MySQL server has gone away Local host when importing to localhost

Winputty is another application that provides a command line interface to your AMP Stack install
Google for it

Zen-Venom Get Bitten

9 May 2010, 2:00 PM
#5
sunflowertami avatar

sunflowertami

Zen Follower

Join Date:
Jun 2008
Posts:
267
Plugin Contributions:
0

Re: #2006 - MySQL server has gone away Local host when importing to localhost

Hi,

I got Putty.exe and WinPutty-CD. I'm really at a loss as to how to use it... please help! Thanks

:cry:

9 May 2010, 9:52 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: #2006 - MySQL server has gone away Local host when importing to localhost

They have documentation included and you can Google for additional

Zen-Venom Get Bitten