Connection Refused with mysql db

Hi, I am new to flowable. I need a lil help with connecting to mysql database with flowable set up in apache Tomcat. Much appreciated!

I am trying to connect to the mysql database set up on an ubuntu server (VM) from flowable that is set up in apache Tomcat (host machine)

I have added a file tomcat\lib\

datasource.driver = com.mysql.jdbc.Driver
datasource.username = flowable
datasource.password = flowable

Privileges are granted on mysql and I can ping from host to server and server to host. Firewalls are down for both client and server.

The error I received was…

Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: 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.

Caused by: Connection refused


can you connect with the mysql command line tools or a GUI tool from the same host with the same connection settings?



Hi, thank you! I managed to solve it.

The issue was that I could not connect as mysql database was not listening on the IP address.

I commented the bind-address line

bind-address =

in mysql.conf file which can be found in one of the mysql configuration files.

For Flowable 6.3 onwards, there is no, instead use provided, should be placed inside $CATALINA_HOME/lib/config folder for Tomcat. Inside, we can put only the things we want to be overridden e.g. database details.