Re: Problem with connecting to MySQL server
Hello,
I had the same problem and, after wasting a lot of time checking why that could happen, I solved it, my problem was with the connection charSet configuration, so I passed the charSet configuration I was using in my database through the getConnection method of the DriverManager. Like this:
DriverManager.getConnection("jdbc:mysql://localhost/bd_prueba?useUnicode=yes&characterEncoding=UTF-8", "username", "password")
I hope it can help you with your problem.
Sergio Padin
Subject
Written By
Posted
Re: Problem with connecting to MySQL server
April 27, 2009 01:14PM
November 13, 2009 08:33AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.