Unable to connect to database which is ssl enabled

I am unable to connect to MySQL database which is ssl enabled. The robot framework code is given below

Suite Setup Connect To Database pymysql ${DBName} ${DBUser} ${DBPass} ${DBHost} ${DBPort}

When I execute, I get this error

Suite setup failed:
OperationalError: (2003, “Can’t connect to MySQL server on ‘cpmdb-nonprod.mysql.database.azure.com’ ([Errno 11001] getaddrinfo failed)”)

Please let me know how I can make my tests pass