[英]How to access the development database with the Play! framework?
I want to see the tables of my Play! 我想看看我的Play表! application with the H2 console, but all I see is a list of internal tables of the db engine.
使用H2控制台的应用程序,但我看到的只是数据库引擎的内部表列表。 How can I view the tables of my application?
如何查看我的应用程序表?
Log on to the JDBC URL jdbc:h2:mem:play
instead. 登录到JDBC URL
jdbc:h2:mem:play
。 That is where the development database runs on at least on my Play instance. 这是开发数据库至少在我的Play实例上运行的地方。
Most likely, you are looking a different database. 最有可能的是,您正在寻找不同的数据库。 Could you verify the database URL is really
jdbc:h2:~/play
? 你能验证数据库URL真的是
jdbc:h2:~/play
?
You should also consider upgrading to a more recent version of H2. 您还应该考虑升级到更新版本的H2。 The version you are using (1.3.149) is a beta version.
您使用的版本(1.3.149)是测试版。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.