473,785 Members | 3,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2848
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
1416
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 those keys. The status bar tells me "The key combination (Ctrl+k, Ctrl+D) is not a command." Weird... I then check the Edit menu->Advanced. Format Selection is there, but Format Document isn't. Ok, so I go into Customize... verify that the...
235
11807
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 stay with C and still be able to produce Java byte code for platform independent apps. Also, old programs (with some tweaking) could be re-compiled and ported to the JVM. We have been developing such a tool over the last 2 years and currently...
1
1540
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 problem is PFILE_OBJECT* and PDEVICE_OBJECT*. I don't want to declare them in C# because I'm not going to use them other than passing them into other functions (plus they are both semi opaque). I tried to use IntPtr, but keep getting...
14
2838
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 contents, use the "Bookmarks" tab in Adobe Acrobat. Comments, corrections, praise, nits, etc., are still welcome!
3
1271
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 start with a quick survey of delegate basics, including invocation list editing and event syntax (which few people seem to really understand). I will then explore 2.0's anonymous methods before concluding with a lengthy discussion of asynchronous...
11
1682
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 that actually gets to the good stuff at some point, without first spending 6 chapters on how to append ints to a list. I can't seem to find any. I get the impression people just get by with scraps and code snippets
13
2823
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 this? TIA. Andro
30
4122
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" << std::endl; Myself I am not sure which I prefer, it is certainly easier to specify that the std namespace is being used instead of tagging each member of the namespace?
25
3019
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 MyClass:IDisposable
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.