Forums / General Questions / SQL Error 2006 MySQL server has gone away

SQL Error 2006 MySQL server has gone away

Locked

Started by asterix on 11 Jun 2007, 4:51 PM · Views: 8,439

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
11 Jun 2007, 4:51 PM
#1
asterix avatar

asterix

Zen Follower

Join Date:
Aug 2005
Posts:
168
Plugin Contributions:
0

SQL Error 2006 MySQL server has gone away

Does anyone know what that means?
Taxes are set up for NY but I don't see it there... Thanks in advance... :)

CODE
2006 MySQL server has gone away
in:
[select sum(tax_rate) as tax_rate from (tax_rates tr left join zones_to_geo_zones za on (tr.tax_zone_id = za.geo_zone_id) left join geo_zones tz on (tz.geo_zone_id = tr.tax_zone_id) ) where (za.zone_country_id is null or za.zone_country_id = 0 or za.zone_country_id = '223') and (za.zone_id is null or za.zone_id = 0 or za.zone_id = '43') and tr.tax_class_id = '1' group by tr.tax_priority]

2006 MySQL server has gone away
in:
[select count(*) as total from sessions where sesskey = '960f9611d19d5d0abf2e14ebb6e17b8e']
/CODE

11 Jun 2007, 6:44 PM
#2
kobra avatar

kobra

Black Belt

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

Re: SQL Error 2006 MySQL server has gone away

What was happening when this was generated?

Frontend side admin side???

What page/function/step

Detail Detail

Or a url and procedure to get to this error

Zen-Venom Get Bitten

11 Jun 2007, 7:52 PM
#3
asterix avatar

asterix

Zen Follower

Join Date:
Aug 2005
Posts:
168
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

This happens when creating an account or checking out. The funny thing is that the account is created; after getting that error, I go back to the store's index page and see the account has been created and I'm logged in.

http://www.simpaticohamptons.com/store/

I had an issue with a UPS XML module bu got it to work after a clean install. Any suggestions?

11 Jun 2007, 9:04 PM
#4
kobra avatar

kobra

Black Belt

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

Re: SQL Error 2006 MySQL server has gone away

Fell asleep waiting for your page to load - - Do something about your images at 300+k per and then your hosting server is serving these up slowly.

The small base image that is 100x80 px needs only be 2-4k to render an acceptable image

Zen-Venom Get Bitten

11 Jun 2007, 9:17 PM
#5
kobra avatar

kobra

Black Belt

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

Re: SQL Error 2006 MySQL server has gone away

Created an account no error -

Logged in no error

Added item to cart got to step 3 of 3 emptied cart - no error -

Selected continue and got this error:

2006 MySQL server has gone away
in:
[select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from currencies]
2006 MySQL server has gone away
in:
[select count(*) as total from sessions where sesskey = '377ce7b8663e369e94d0c12c5ff04261']

Refreshed after a wait and page came back up----

I suspect that you are having hosting server issues

Zen-Venom Get Bitten

11 Jun 2007, 11:31 PM
#6
asterix avatar

asterix

Zen Follower

Join Date:
Aug 2005
Posts:
168
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

Thanks, I'll look into it. ;)

15 Jun 2007, 8:13 PM
#7
asterix avatar

asterix

Zen Follower

Join Date:
Aug 2005
Posts:
168
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

After checking SQL, here's what my server support concluded:

QUOTE
Yes, ZenCart is widely used, however there are also a few bugs when working with BLOB formats. You can find advice on their forums and mailing lists on how to prevent this. This is not a system related issue.
/QUOTE

Does that make any sense to anyone? :)

16 Jun 2007, 1:36 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: SQL Error 2006 MySQL server has gone away

Not sure if this will help;
http://www.zen-cart.com/forum/showthread.php?t=56436&highlight=BLOB

Also do a search on blob and see if there might be other related posts that can help ...

Do let us know if you find a solution to this one ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jun 2007, 1:39 PM
#9
asterix avatar

asterix

Zen Follower

Join Date:
Aug 2005
Posts:
168
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

Time will tell but I've successfully run the following SQL command:

change cache tracking size

TRUNCATE TABLE db_cache;
ALTER TABLE db_cache CHANGE cache_data cache_data mediumblob;

Thanks for the link! ;)

2 Sep 2008, 11:44 AM
#10
artbobo avatar

artbobo

New Zenner

Join Date:
Apr 2008
Posts:
25
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

Hello Asterix,
Did your blob change help?
I'm getting MySQL server has gone away errors when creating an account or checking out too.
I'm wondering is this might have anything to do with google analytics.
http://www.martymagic.com

2 Sep 2008, 3:50 PM
#11
kobra avatar

kobra

Black Belt

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

Re: SQL Error 2006 MySQL server has gone away

artbobo,

This is usually a server setting being too limited and not one you can adjust normally. Check with your host and ask them what their mysql timeout settings are

Zen-Venom Get Bitten

4 Sep 2008, 8:29 PM
#12
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

2006 MySQL server has gone away
in:
[SELECT count(*) as count FROM subscribers WHERE email_address = '[email protected]']

I get this following error EVERY TIME someone tries to confirm their order and return from paypal to the store. This also means that orders doesn't register which is a huge problem for us and we have no explanation or an idea how to fix it. What could I do.. I didn't have this problem before.. it started with our new store and fresh install of the new zen.

4 Sep 2008, 11:03 PM
#13
dhicks avatar

dhicks

New Zenner

Join Date:
Sep 2008
Posts:
5
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

Hello Marty I to am getting this message when trying to check out by the look of this tread it seems tobe a very commond problem.

Can anyone give a answer on how to fix this problem:

( 2006 MySQL server has gone away
in:
[select customers_email_format from customers where customers_email_address= '[email protected]']

2006 MySQL server has gone away
in:
[select count(*) as total from sessions where sesskey = '8de4963043c109fdfbbe9793ae97c6ad'] )

4 Sep 2008, 11:25 PM
#14
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

more of these:

2006 MySQL server has gone away
in:
[select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from currencies]

Should I change cache type or something*?

5 Sep 2008, 12:22 AM
#15
kobra avatar

kobra

Black Belt

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

Re: SQL Error 2006 MySQL server has gone away

poosk,

See post #11 in this thread

Zen-Venom Get Bitten

16 Sep 2008, 4:39 PM
#16
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: SQL Error 2006 MySQL server has gone away

Well yep but is there a another solution than to switch hosts then? I mean could I change the cache type or something?

16 Sep 2008, 7:46 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: SQL Error 2006 MySQL server has gone away

poosk:

I didn't have this problem before.. it started with our new store and fresh install of the new zen.

What's different between your "working" site and the one that's not working right?
What settings are different?
What addons are installed?
Are they on the same host?
What has your hosting company said when you reported the problem to them?
What were the results of following the instructions in the FAQ on the topic? https://www.zen-cart.com/tutorials/index.php?article=388

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Sep 2008, 12:45 PM
#18
kobra avatar

kobra

Black Belt

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

Re: SQL Error 2006 MySQL server has gone away

poosk:

Well yep but is there a another solution than to switch hosts then? I mean could I change the cache type or something?
Where did I suggest you needed to switch hosts?

kobra:

This is usually a server setting being too limited and not one you can adjust normally. Check with your host and ask them what their mysql timeout settings are
Cache type has little to do with this....

Zen-Venom Get Bitten