Set up dynmap on my Minecraft server that runs on pterodactyl. Set up a mysql in a docker container. Database is created, user is created, user has all privileges on database, but I keep getting the error, that the connection was refused.
Console on startup of server:
[00:15:03 INFO]: [dynmap] Initializing database schema
[00:15:07 ERROR]: [dynmap] SQLException: Error creating tables
[00:15:07 ERROR]: [dynmap] ErrorCode: 0, SQLState=08001
[00:15:07 ERROR]: [dynmap] Message: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
[00:15:07 ERROR]: [dynmap] ConnectionString: jdbc:mysql://127.0.0.1:3307/s9_dynmap01?allowReconnect=true&autoReconnect=true
[00:15:07 ERROR]: [dynmap] CausedBy: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
[00:15:07 ERROR]: [dynmap] CausedBy: Connection refused
[00:15:07 ERROR]: [dynmap] Map storage initialization failure
mysql> SHOW GRANTS FOR 'u9_QpJwey0Kv9'@'127.0.0.1';
GRANT USAGE ON . TO `u9_QpJwey0Kv9`@`127.0.0.1`
GRANT ALL PRIVILEGES ON `s9_dynmap01`.* TO `u9_QpJwey0Kv9`@`127.0.0.1`
Any ideas on what it could be?