我遇到了休眠问题,想在用户名末尾添加@.myisp.whatever.net。即使我尝试自己使用@mydatabase.com 对其进行限定,它仍然会附加到另一个@ 我如何阻止它这样做?
休眠配置:
<hibernate-configuration>
<session-factory name="">
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">password</property>
<property name="hibernate.connection.url">jdbc:mysql://mydatabase.com:3306/database</property>
<property name="hibernate.connection.username">username@mydatabase.com</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
</session-factory>
</hibernate-configuration>
错误:
java.sql.SQLException: Access denied for user 'username@mydatabase.com'@'111-111-111-111.slkc.qwest.net' (using password: YES)