我正在尝试使用Roo数据库反向工程(DBRE)附加恢复我的MYSQL数据库。当我使用命令自省数据库时
database introspect --schema demohibernate我搞错了
Schema(s) 'demohibernate' do not exist or does not have any tables. Note that the schema names of some databases are case-sensitive我检查了我的数据库中存在的模式(数据库) demohibernate。我使用roo命令检查项目的数据库配置。
database properties list我得到了结果
database properties list
database.driverClassName = com.mysql.jdbc.Driver
database.password = 123456
database.url = jdbc:mysql://localhost:3306
database.username = root用户名和密码是正确的。我安装了MYSQL数据库的驱动程序。我不知道怎么解决。谢谢你的帮助。
发布于 2014-10-03 05:39:43
注意,MySQL不使用模式,所以您的命令必须是:
roo> database introspect --schema no-schema-required 此外,目标数据库名必须包含在JDBC连接字符串中:
roo> database properties list
database.driverClassName = com.mysql.jdbc.Driver
database.password = 123456
database.url = jdbc:mysql://localhost:3306/demohibernate
database.username = roothttps://stackoverflow.com/questions/26172545
复制相似问题