Hi,

>  I get the wrong username or password error

In that case, it's the wrong user name or password for an existing
database. Please note you have added the user name / password to the
database URL. If you at the same time set it in the call, then it's
ambiguous. Avoid this: DriverManager.getConnection(urlWithUserNamePassword,
userName, password).

Regards,
Thomas





On Sat, Dec 7, 2013 at 4:39 PM, bruce buchanan
<[email protected]>wrote:

> I have an app, the app is running H2 embedded, but I would also like to
> access my db from "outside"
>
> so I use this connection string to create the db:
>
> "jdbc:h2:[absolute path with
> filename];AUTO_SERVER=TRUE;AUTO_SERVER_PORT=9092;USER=sa;PASSWORD=sa;";
>
> which works, can close and open connections using this connection string
> from "inside" it works, can load/select data, etc
>
> then, when I try to access from outside, using any client tool, same login
> info, I get the wrong username or password error
>
> a couple questions:
>
> I wouldnt be getting this error if the client wasnt actually finding the
> server, correct? ie, I'm getting the ip level stuff right
>
> the login you create the db the one that applies, true?
>
> the client tools I'm using (eg the H2 console, or razor) give me a choice
> between embedded and server connection profiles... given that I'm in mixed
> mode, which would I use? why would any client offer embedded mode? what's
> the difference, deep down?
>
> different databii are always in different files, correct? how do I list
> the 'catalogs'?
>
> note I have been deleting everything for each test
>
>
>
> thanks for your help
>
>
>
>
>
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to