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:
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
- Enable SSL and use the SSL connection method to connect to a database. For details, see "SSL connection" in section Connecting to a DB Instance Through a Private Network.
- Disable SSL and use the SSL connection method to connect to a database. For details, see "Using MySQL-Front to Connect to a DB Instance" in section Connecting to a DB Instance Through a Private Network.
Last Article: MySQL-server Connection Failure After a Version Upgrade
Next Article: Automated Incremental Backup Failed Due to Full Storage
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.