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

Changing user id and password for H2 database does not work #5

Open
wagenbm opened this issue Jul 22, 2023 · 0 comments
Open

Changing user id and password for H2 database does not work #5

wagenbm opened this issue Jul 22, 2023 · 0 comments

Comments

@wagenbm
Copy link

wagenbm commented Jul 22, 2023

I tried to overwrite the default user id and password for the h2 database by providing own credentials. To do so I added to the application.properties file these two lines

spring.datasource.user=myuser spring.datasource.password=pw

Via the h2-console I created that user as well. I can log-on to the database with the new user and its password without any problem.

However, when starting the multiplication service, I am getting this error:

org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Falscher Benutzername oder Passwort Wrong user name or password [28000-214]

How can it be if I can log-on to the console with "myuser" and password = "pw" without any problem?

When removing the two lines from the application.properties file it works again as the defaults apply (no user id, no password).

Thanks for your help,
Matthias

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