You can enable access to your MySQL database securely with SSL. You're required to provide a set of trusted IP addresses before your MySQL server will be exposed to the Internet. Only SSL connections are permitted.
Trusted Sources for Remote MySQL connections
Add your trusted sources from the Database section. After providing your IP addresses, you can download your certificate files which you'll use to connect securely to your database server.