ERROR pool.ConnectionPool - Unable to create initial connections of pool.
java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
/etc/rundeck/rundeck-config.properties:
<snip>
dataSource.dbCreate = update
#dataSource.url=jdbc:h2:file:/var/lib/rundeck/data/rundeckdb;MVCC=true
dataSource.url=jdbc:mysql://<remote host ip address>/rundeck?autoReconnect=true&useSSL=false&serverTimezone=EST&allowPublicKeyRetrieval=true
dataSource.username=<myuser>
dataSource.password=<mypassword>
dataSource.driverClassName=com.mysql.cj.jdbc.Driver
Grants on mysql db:
GRANT USAGE ON *.* TO '<myuser>'@'%'
GRANT ALL PRIVILEGES ON '<myuser'.* TO '<myuser>'@'%'
I've verified my ability to log into the db with user/password combo from my laptop, and I get a connection from the rundeck server to the mysql db:port with telnet
Any help would be appreciated. I've been at this for hours now.