Bug #64480 | Sometimes retrieving a Connection using the Connector/J mysql driver fails | ||
---|---|---|---|
Submitted: | 28 Feb 2012 9:53 | Modified: | 13 Mar 2012 16:12 |
Reporter: | Tim Lammens | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | 5.1.18 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[28 Feb 2012 9:53]
Tim Lammens
[28 Feb 2012 10:08]
Tim Lammens
The connection string used "jdbc:mysql://localhost:3306/sop?characterEncoding=UTF-8&useUnicode=true&useOldUTF8Behavior=true"
[28 Feb 2012 10:13]
Tim Lammens
Problem did not occur with driver 5.0.8
[28 Feb 2012 19:44]
Mark Matthews
Mysql-4.0.x is not really supported by newer versions of the driver. That version of the server has been end-of-life for quite some time (years). Have you considered upgrading to MySQL-5.5?
[13 Mar 2012 15:55]
Tim Lammens
The client needs to be able to talk to different versions of the server, since it is not always an option to upgrade the server version... The problem was solved by using a custom classloader to load an older version of the driver which does support 4.x, but the driver should do this internally...
[13 Mar 2012 16:12]
Tonci Grgin
Tim, thanks for sharing your solution with us. Now, I do not get "The client needs to be able to talk to different versions of the server, since it is not always an option to upgrade the server version..." Driver *is* supporting too many versions already. As a matter of fact, it is supporting so many versions that I'm thinking of making a new release which will further narrow it down. After all, you're years and 4 major versions behind current GA.