generator-jhipster-quarkus
generator-jhipster-quarkus copied to clipboard
Connect Error due to MYSQL_USER not being root in DEV Mode (mariadb)
Describe the bug JDL Setup
application { config { baseName gateway, applicationType gateway, packageName com.test.application, authenticationType oauth2, prodDatabaseType mariadb, databaseType sql, devDatabaseType mariadb, serverPort 8080, clientFramework react, blueprint quarkus, buildTool maven, languages [en, de], nativeLanguage en, serviceDiscoveryType eureka, skipUserManagement true, } }
When you setup the quarkus application and use mariadb you get a connect error because the default user of the properties is the application name whereas the config yml uses root as the username. This can easily be fixed by changing the username to root.
%dev.quarkus.datasource.username=root
To Reproduce
- RUN jhipster-quarkus jdl .\jhipster-jdl.jdl (authenticationType oauth2)
- RUN jhipster-quarkus docker-compose
- Go to src/main/docker and RUN docker-compose -f .\mariadb.yml up
- Go to gateway folder and RUN .\mvnw
- Error in connecting to the database
Expected behavior Connection to the datatabase works and the application starts up.
Screenshots

Desktop:
- OS: Windows 10
This would be fixed in the PR : Added new keycloak realm config jsons for quarkus authorization bug #169
is it related to it ?
https://github.com/jhipster/generator-jhipster/pull/14477#issuecomment-808906522