MySQL server setup for SQL Connector

I have a MySQL DB on DigitalOcean. I am not able to connect to it with SQL Connector. I get this error “Connection issue: SQL Database Connector issue: Connection attempt failed: SQL Database Connector issue”. But I am able to connect to it with DBeaver with same user. Does anyone know how I can resolve this issue?