Connecting to a MySQL DB from a 3rd party app


I’m attempting to pass data from an app called Analytics Canvas into a MySQL DB, but I’m unable to connect. AC needs the following values to connect, but I must be missing something because it’s unable to establish a connection.

Server: I ran this code (echo $C9_HOSTNAME) to get my hostname
Port: 3306
UN: my Cloud9 UN
PW: my Cloud9 PW
DB: DB name

Am I using the wrong server or port? Any other ideas what I could be doing wrong?