The file jdbc_url.txt does exist and has a connection url generated from pterodactyl
UPDATE: Tried removing pterodactyl from the equation and still doesnt work. It gets past the create code and all, nothing gets logged even after adding
addLogger(StdOutSqlLogger)
and the tables arent in the db.
✅ 1
b
Bogdan
04/28/2021, 2:36 PM
maybe the problem is in
autoCommit = false
, try like this:
Copy code
transaction {
// create
commit ()
}
the query is displayed in the log?
Bogdan
04/28/2021, 2:40 PM
jdbc_url.txt
- are you sure the URL is correct?
Bogdan
04/28/2021, 2:42 PM
Also, first create a HikariConfig, and already from it we get a HikariDataSource. True, I am not too familiar with Hikari
t
tapac
04/28/2021, 7:28 PM
@Dominick , can you connect to database without the HikariDataSource?
Also I can't see that you provide username/password, are they in jdbc_url?
d
Dominick
04/29/2021, 9:34 AM
I've solved the problem, in the end I think it was the jdbc url & the connector, I switched to a mysql jdbc url and specifying the username & password with addDataSourceProperty, and ensuring the connector I depended on was mysql-connector-java, even though it's a mariadb.