logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
instant 'Lost connection to MySQL server during query'

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
doxic



Joined: 07 Oct 2008
Posts: 13

PostPosted: Sat Jun 20, 2009 23:01    Post subject: instant 'Lost connection to MySQL server during query' Reply with quote

Hello again,
I've got a big Problem with my MySQL server, running on a webspace with the version 5.0.41.

The Problem is that i get the error Message "! SQL Error: Lost connection to MySQL server during query" directly after i started my nwn server via NWNX2. This happens with every command i try to execute.

Here's the nwnx_odbc log:
Quote:
NWNX ODBC2 plugin V.0.9.2.4
(c) 2005 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
visit us at http://www.nwnx.org

o Logfile maximum size limit is: 1048576 bytes
o Log level: Everything will be logged.
o Using MySQL connection.
o Hooking SCO....hooked at 5d5830
o Hooking RCO....hooked at 5d5710
o Connect successful.
o Got request: select date(localtime()), time(localtime())
! SQL Error: Lost connection to MySQL server during query
o Empty set

It's just strange, because if I'm using the MySQL server from a friend (version 4.1.10a) I don't get any errors.

I read somewhere that this error occurs, when using my mysql version, but I don't really know if it's true.
I can browse in the database without any problems with phpMyAdmin or the MySQL Query Browser, but it's just not possible to do anything with this db in nwn.
Does anyone know what to do?

Thanks,
doxic


*edit*:
I just took a look into the search function and found the post with the ping() function.
I don't know why and how, but if i make the script to execute the "select 1" command, the connection establishes and stays.

But I'm getting the "lost connection" message very often... :/
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Sun Jun 21, 2009 21:26    Post subject: Reply with quote

So... why don't you update your MySQL version?
Back to top
View user's profile Send private message
doxic



Joined: 07 Oct 2008
Posts: 13

PostPosted: Tue Jun 23, 2009 0:03    Post subject: Reply with quote

That's what I'm going to try now, but I don't know, if the server hosts will react to my request and that's why I created this topic Very Happy
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Wed Jun 24, 2009 10:29    Post subject: Reply with quote

Just a wild guess, but maybe the binary version of nwnx_odbc available for download was linked against a version of libmysqlclient with some kind of bug causing this. I just built the latest in Win32 SVN and uploaded it to http://mercuric.net/nwn/nwnx/nwnx_odbc-20090624.dll. Download and rename to nwnx_odbc.dll and give it a shot.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
doxic



Joined: 07 Oct 2008
Posts: 13

PostPosted: Sun Jun 28, 2009 16:35    Post subject: Reply with quote

Thanks, i'm going to try it out and write a little response Wink
Back to top
View user's profile Send private message
doxic



Joined: 07 Oct 2008
Posts: 13

PostPosted: Tue Jun 30, 2009 14:11    Post subject: Reply with quote

Ok, I tried the new complied dll and everything worked fine Smile
It seems that this solved the Problem.

Thank you very much Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group