DB connection failed for remote mySQL DB

I have installed metabase on Server 1(Linode- Ubuntu 19.10).

My MySQL DB is on Server 2(Linode) and can be connected from any other applications or any other IPs.

Whenever I try to add the database, I am getting the following error:

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

What am I missing here?