You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the value of spring.database.username defaults to sa at all times. If you choose to use a different database that doesn't require a username (Postgres for example, can authenticate by process owner), there isn't a great way to indicate that you want to use no username.
The following fails with FATAL: rolde "sa" does not exist which stands to reason.
The following fails with FATAL: no PostgreSQL username specified in startup packet which again matches expectations because it's not that the username is empty, it's that it shouldn't be set at all.
This work around isn't ideal and I think that boot shouldn't use the sa default if it hasn't also defaulted the url. Arguably, the defaulting of org.h2.Driver shouldn't happen for the same reasons.
The text was updated successfully, but these errors were encountered:
To use a DataSource pool (Tomcat or DBCP) the user must supply a valid
driver class name *and* database URL. If both are supplied and the
driver class is not one of the embedded ones, then no default username
or password is provided.
Fixesspring-projectsgh-94
Currently the value of spring.database.username defaults to
sa
at all times. If you choose to use a different database that doesn't require a username (Postgres for example, can authenticate by process owner), there isn't a great way to indicate that you want to use no username.The following fails with
FATAL: rolde "sa" does not exist
which stands to reason.The following fails with
FATAL: no PostgreSQL username specified in startup packet
which again matches expectations because it's not that the username is empty, it's that it shouldn't be set at all.A workaround at the moment is to use the
$USER
oruser.name
.This work around isn't ideal and I think that boot shouldn't use the
sa
default if it hasn't also defaulted the url. Arguably, the defaulting oforg.h2.Driver
shouldn't happen for the same reasons.The text was updated successfully, but these errors were encountered: