How Do I Disable SSL for a Database?
If SSL is enabled for a database, the database cannot be audited. To use database audit, disable SSL first.
The MySQL database client is used as an example. Perform the following steps:
- Log in to the MySQL database client as user root.
- Run the following command to check the connection mode of the MySQL database:
\s
- If information similar to the following is displayed, SSL has been disabled for the MySQL database.
1
SSL: Not in use
- If information similar to the following is displayed, SSL has been enabled for the MySQL database. Go to 3.
1
SSL: Cipher in use is XXX-XXX-XXXXXX-XXX
- If information similar to the following is displayed, SSL has been disabled for the MySQL database.
- Log in to the MySQL database in SSL mode.
- Run the following command to exit from the MySQL database:
- Log in to the MySQL database as user root.
Add the following parameters at the end of the login command:
--ssl-mode=DISABLED
Or
--ssl=0
If you logged in to the MySQL database in SSL mode, you can disable SSL only for this login. To use the database audit function, log in to the MySQL database as instructed in this step.
- Run the following command to check the connection mode of the MySQL database:
If information similar to the following is displayed, SSL has been disabled for the MySQL database.
1
SSL: Not in use
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.