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

Mysql db support #487

Closed
wants to merge 6 commits into from
Closed

Mysql db support #487

wants to merge 6 commits into from

Conversation

saivivek116
Copy link
Collaborator

@saivivek116 saivivek116 commented Mar 24, 2024

Added support to apply properties from the external application properties to the project
location of the external application.properties
${HOME}/geoweaver/application.properties

User can modify the database properties using this external properties file
by providing details such as
spring.datasource.url,
spring.datasource.username
spring.datasource.password
spring.datasource.driver-class-name
spring.jpa.database-platform

@ZihengSun ZihengSun requested a review from gokulprathin8 March 25, 2024 18:15
@ZihengSun
Copy link
Member

@gokulprathin8 please help test if this works

Copy link
Collaborator

@gokulprathin8 gokulprathin8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please recheck funtionality @saivivek116

Comment on lines +24 to +26

spring.config.import=optional:file:${HOME}/geoweaver/application.properties

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caused by: java.sql.SQLSyntaxErrorException: Table 'geoweaver.HOST' doesn't exist
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:912)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:968)
at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)

Does not show publicuser host:

image

Adding a host fails

Caused by: java.sql.SQLSyntaxErrorException: Table 'geoweaver.HOST' doesn't exist
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:912)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:968)
at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)

Environment table is empty

image

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

Successfully merging this pull request may close these issues.

3 participants