简体   繁体   中英

How to access the development database with the Play! framework?

I want to see the tables of my Play! application with the H2 console, but all I see is a list of internal tables of the db engine. How can I view the tables of my application?

H2控制台

Log on to the JDBC URL jdbc:h2:mem:play instead. That is where the development database runs on at least on my Play instance.

Most likely, you are looking a different database. Could you verify the database URL is really jdbc:h2:~/play ?

You should also consider upgrading to a more recent version of H2. The version you are using (1.3.149) is a beta version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM