How to securely connect to remote database server with tls, ssl

Describe the issue or problem
I tried to connect a remote database server requiring a secure connection settings.
I couldnt achieve with ojs-

I’am getting the error message of

" Fatal error : Uncaught PDOException: SQLSTATE[HY000] [1105] Connections using insecure transport are prohibited".

They require establishing a secure TLS connection between client and the database host.

Is it possible to connect with TLS?
Kindly request your help.
Baris Kiremitci