I have tried db connection by add pem cert files and pdo_mysql setup. But always getting below error.
SQLSTATE[HY000] [2002] Connection refused