Help Center/ Relational Database Service/ User Guide (Kuala Lumpur Region)/ Troubleshooting/ RDS for MySQL/ Connection Issues/ Database Connection Through Code (php/java/python) Failed After SSL Is Enabled
Updated on 2025-10-28 GMT+08:00

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

Scenario

After SSL is enabled, an error message is displayed when a database is connected through commands.

Figure 1 Connection failure

Fault Analysis

If SSL is enabled, only an SSL connection can be used for login.

Solution

Enable SSL and use an SSL connection to connect to a database. For details, see Connecting to a DB Instance Through a Private Network.