Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aplatypus opened this issue Nov 27, 2021 · 0 comments
Open

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

aplatypus opened this issue Nov 27, 2021 · 0 comments

Comments

@aplatypus
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant