Help Center/
Relational Database Service_RDS for MySQL/
Troubleshooting/
Connection Issues/
Database Connection Through Code (php/java/python) Failed After SSL Is Enabled
Updated on 2025-06-13 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 to using commands.
Figure 1 Connection failure

Troubleshooting
Check whether the connection command uses SSL.
Solution
- Enable SSL and use an SSL connection to connect to a database. For details, see Using MySQL CLI to Connect to an Instance Through a Private Network.
- Disable SSL and use a non-SSL connection to connect to a database. For details, see Buying a DB Instance and Connecting to It Using a MySQL Client.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot