MESSAGE: java.net.ConnectException: Connection refused:
connect
Either mysql
is not running, or it is not using the default port (3306).
Try checking the connections settings, connect manually with a tool like mysql
workbench.
This is the setting you may need to change if the mysql port is different than the default:
property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/bank
"