Access denied for user 'ejbca'@'localhost' (using password: YES) #189
-
Hi If I try to login to the database directly (from CLI using "mysql -u ejbca -p"), I can login as user ejbca@localhost. MariaDB [ejbca]> select current_user(); Username and password are configured in database.properties and deployed with 'ant deployear' My questions: Info: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't need to set any database url or password in database.properties, only the database type. Depending on which instruction you use. For simpler configurations the password was in standalone.xml in wildfly, but for the later instructions a WildFly credential store is used, so the password has to be changed in that. Or the datasource reconfigured with a new password in the credential store. |
Beta Was this translation helpful? Give feedback.
You don't need to set any database url or password in database.properties, only the database type.
The database url and password is set when you configure the application server, when adding the datasource.
https://doc.primekey.com/ejbca/ejbca-installation/application-servers/wildfly-26#WildFly26-AddaDatasource
Depending on which instruction you use. For simpler configurations the password was in standalone.xml in wildfly, but for the later instructions a WildFly credential store is used, so the password has to be changed in that. Or the datasource reconfigured with a new password in the credential store.