Help Center> Relational Database Service> Troubleshooting> Database Connection Through Code (php/java/python) Failed After SSL Is Enabled

Database Connection Through Code (php/java/python) Failed After SSL Is Enabled

Scenarios

After SSL is enabled, the following error message is displayed when a database is connected through commands:

Figure 1 Connection failure

Fault Analysis

After SSL is enabled, only the SSL connection method can be used. The connection will fail if you use a common connection to connect to a database.

Solution