Skip to content

What's the URL for this JDBC connection? #2

@aplatypus

Description

@aplatypus

I am able to connect with a test H2 database with the following URL:

  • jdbc:h2:tcp://localhost/./test

using the dBeaver database workbench.

The URL example from the README gives an error whe I use that as my model with usql:

  • error: h2: driver: bad connection

for this command:

 $ usql  h2://sa@localhost/test?mem=true
error: h2: driver: bad connection
 $ usql  h2://sa@localhost/./test?mem=true
error: h2: driver: bad connection
 $  usql  h2://sa@localhost:9092/./test

The server is started with this command.

  • java -jar h2/bin/h2-1.4.200.jar -webAllowOthers -tcpAllowOthers -ifNotExists

I think more explaination is needed to format a URL effectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions