MySQL Forums
Forum List  »  Chinese

使用jdbc连接的中文用户名问题
Posted by: leo
Date: November 19, 2006 08:20PM

我使用的是jdbc5.0.3。
我在数据库中创建了一个中文用户 create user '我'@'localhost'
然后使用jdbc进行连接。连接串为:DriverManager.getConnection("jdbc:mysql://localhost:3306/?useUnicode=true&characterEncoding=GB2312","我","")

异常显示为:
java.sql.SQLException: Access denied for user '??'@'localhost' (using password: NO)
java.lang.NullPointerException



Edited 1 time(s). Last edit at 11/19/2006 09:51PM by leo .

Options: ReplyQuote


Subject
Views
Written By
Posted
使用jdbc连接的中文用户名问题
14935
November 19, 2006 08:20PM
7992
November 20, 2006 04:07AM


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.