title: Springboot H2 in memory database - cannot connect
body: <p>I have configured H2 as follows for my springboot app:</p>
  
  <pre><code>spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
  spring.datasource.driverClassName=org.h2.Driver
  spring.datasource.username=sa
  spring.datasource.password=
  spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
  
  # Enabling H2 Console
  spring.h2.console.enabled=true
  # Custom H2 Console URL
  spring.h2.console.path=/h2
  </code></pre>
  
  <p>When I go to log in it says it cannot find the database. I am typing explicitly <code>jdbc:h2:mem:testdb</code> like this:</p>
  
  <p><a href="https://i.stack.imgur.com/AFRoS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AFRoS.png" alt="enter image description here"></a></p>
  
  <p>What else can I do to troubleshoot? I do have a data.sql file which is creating the schema and putting in sample data.</p>