I’m trying to have a look at the tables generated in h2 db used in Grails project, but something’s amiss.
I connect to the browser console at http://127.0.1.1:8082/ but all that’s there to browse is INFORMATION_SCHEMA and Users. How do I get tho the tables used/generated by the app?
Just started building out the app and only few domain classes are in place and I’m trying to get a feel for working h2. Prior to that I’ve been using PostgreSql in all projects so this is very unnerving for the moment.
Thanks in advance
Are you using the right JDBC URL when logging in?
The default in grails is
jdbc:h2:mem:devDB.When an non-existing URL is given, like
jdbc:h2:blabla, an empty database is created, with the defaultINFORMATION_SCHEMAandUsersas you described.Make sure you connect to the URL where your grails application stores its tables. You can find the URL in
$GRAILS_PROJECT/config/DataSource.groovy, after theurldefinition.