MySQL "Lost communication with server"

Questions and answers regarding general SQL and backend databases

MySQL "Lost communication with server"

Postby Thunder » Tue May 23, 2006 3:42 pm

Hi all

I have a Sybase solution which is all based locally on a local server and works perfectly properly and never had a problem. I recently (about 2 months ago) added a mysql server to the mix in order that the internal database system can monitor a remote mysql based web store and see incoming orders / subscribers etc. As soon as the server was added, my solution became buggy when trying to 'import a solution' I get a variety of errors when importing, "lost communication with server" was one I had this morning. This seems to be temporarily resolved by restarting the server. If I restart servoy server, it allows me to do the import. The server is: Servoy version R2 2.2.5-build 337, repository version 27
the mysql server is jdbc:mysql://xxx.xxx.xxx.xxx/dbname, driver is org.gjt.mm.mysql.Driver. The server machine is a G5 2.0Ghz DP with latest Java and 10.4.6 etc.

I'd be grateful for any help anyone can give with this..

Thanks

Bevil
Thunder
 
Posts: 431
Joined: Thu Apr 24, 2003 10:33 am
Location: London

Postby ngervasi » Tue May 23, 2006 4:58 pm

Try to download the last MySQL Connector/J from here: http://dev.mysql.com/downloads/connector/j/3.1.html
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1487
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Postby Thunder » Sun Jun 04, 2006 12:49 am

Hi Nicola

I downloaded it and found that my own Servoy installation already has the newer Mysql driver (I vaguely remember updating it sometime) My customer's server, which runs the Servoy Server, reports the driver as org.gjt.mm.mysql.Driver - which seems to be the driver for the updated Mysql driver (I could be wrong but thats what I gather from the documentation). What should it be?

Thanks

Bevil
Thunder
 
Posts: 431
Joined: Thu Apr 24, 2003 10:33 am
Location: London

Postby ngervasi » Sun Jun 04, 2006 7:11 pm

The official mysql driver is accessible by "com.mysql.jdbc.Driver" or you can just get rid of the driver that shipped with servoy and copy the latest one to the servoy drivers folder, then org.gjt.mm.mysql.Driver will point to the correct one, otherwise it will point to the default one.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1487
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Postby Thunder » Sat Jun 10, 2006 10:20 am

aha..

so even though the latest driver might be there it would be overridden by the older 'default' one?

Cool.. I'll try removing the old one.

Thanks Nicola

Bevil
Thunder
 
Posts: 431
Joined: Thu Apr 24, 2003 10:33 am
Location: London


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 2 guests

cron