473,394 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Okay, this one might qualify as "Advanced" joining...

Problem is that I can't really put all the details in here because of an
NDA. What's going on is that a query with multiple left joins is
apparently spooking mySQL. Server doesn't crash but I get:

"Query Failed:SELECT accounts.id as account_id.. LEFT JOIN ... LEFT JOIN
.... LEFT JOIN ..." (Big query is what I mean) "... amount DESC LIMIT 0,5

::MySQL error 2013: Lost connection to MySQL server during query"

I have never seen that error before (but I'm not a mysql pro). I wanted
to see what was up so I pasted the whole query into phpMyAdmin, and (!):

SQL query:
SHOW TABLE STATUS LIKE 'opportunities';

MySQL said: Documentation
#2006 - MySQL server has gone away

Ow. Don't go away, server! Don't leave me here! That line about TABLE
STATUS isn't actually in the query; something else is triggering it...

Thought it might be a version problem but I'm using 5.0.15 and doc says
the app is compatible with 5.0.x.

M
Sep 19 '06 #1
2 2837
I discovered that
#2006 - MySQL server has gone away
sometimes indicates packets are too big -- IMO the most likely suspect
among the things indicated at
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html

I extended serverside to 5MB and clientside to 32MB

This error didn't occur every time, just part of the time, so I can't
say for sure this has "fixed" it.... will get back to ye.

M
Sep 19 '06 #2
Matt C wrote:
I discovered that
#2006 - MySQL server has gone away

sometimes indicates packets are too big -- IMO the most likely suspect
among the things indicated at
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html

I extended serverside to 5MB and clientside to 32MB

This error didn't occur every time, just part of the time, so I can't
say for sure this has "fixed" it.... will get back to ye.

M
running "check table" on the whole dB gives me a bunch of
PRIMARY and INDEX keys should not both be set for column `id`
and
More than one INDEX key was created for column `call_id`

and (bingo! (?)) :
"1 client is using or hasn't closed the table prope.."
for the table users_activity

so far it seems to be that table each time
Sep 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JD | last post by:
While reading through the "shortcuts" topic in the help, I saw that there's a "Format Document" option - CTRL+K, CTRL+D. Cool... so I go into a .cs source file (this is a winforms project) and hit...
235
by: napi | last post by:
I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could...
1
by: Daniel Jin | last post by:
how to interop this NTSTATUS IoGetDeviceObjectPointer IN PUNICODE_STRING ObjectName IN ACCESS_MASK DesiredAccess OUT PFILE_OBJECT *FileObject OUT PDEVICE_OBJECT *DeviceObjec ) the...
14
by: Alf P. Steinbach | last post by:
Not yet perfect, but: http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01.pdf http://home.no.net/dubjai/win32cpptut/special/pointers/ch_01_examples.zip To access the table of...
3
by: Jon Shemitz | last post by:
Advanced Delegates Delegates may be the least-understood part of the CLR. Delegates look a bit like method pointers, but the differences go well beyond delegates' multi-cast abilities. I will...
11
by: vdrab | last post by:
Hi all, Is there some sort of coherent source (dead tree format, maybe?) on some of the more advanced features of python (decorators, metaclasses, etc)? I'm sort of looking for a python book...
13
by: andro | last post by:
Hi everybody! I have several tables from which I want to exract the SAME value (along with other referenced data). All the values are in the same column within the tables. How can I achieve...
30
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" <<...
25
by: Koliber (js) | last post by:
sorry for my not perfect english i am really f&*ckin angry in this common pattern about dispose: ////////////////////////////////////////////////////////// Public class...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.