Hi Prince,
What part of the error message do you not understand, it's a connection issue. So you need to verify that your OutSystems environment is able to connect to the external database. If there is a connection between your OutSystems environment and the external database server, then maybe firewall rules are blocking you.
Regards,
Daniel