Unable to connect to Mariadb installed on Synology

Arg. Found the answer here. Synology had by default disabled port 3307 in the Mariadb app. Need to enable it.