How Do I Disable SSL for a Database?
Scenario
- If you audit your database without installing the agent, you do not need to disable SSL for the database. Skip this section.
- If you audit your database by installing an agent, you need to disable SSL for the database. Otherwise, you cannot obtain audit data.
Procedure
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot