Re: Problem with connecting to MySQL server
Posted by: Sergio Padin
Date: April 27, 2009 01:14PM

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

Options: ReplyQuote




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.