嗨,我无法连接到春季roo项目中的数据库。我的错误是error org.hibernate.util.JDBCExceptionReporter -未选择数据库
org.hibernate.exception.GenericJDBCException: could not execute query;
nested exception is javax.persistence.PersistenceException:
org.hibernate.exception.GenericJDBCException: could not execute query我的Database.properties文件
database.password=test@
database.url=jdbc\:mysql\://yahoo.com:3306
database.username=arv_aaa
database.schemaNames=ar@1
database.driverClassName=com.mysql.jdbc.Driver发布于 2011-04-15 04:50:12
只需修改下面这一行:
database.url=jdbc\:mysql\://yahoo.com:3306并通过以下方式添加一些数据库:
database.url=jdbc\:mysql\://yahoo.com:3306/mydb希望这能有所帮助!
https://stackoverflow.com/questions/5669460
复制相似问题