forked from docs/doc-exports
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
5.3 KiB
5.3 KiB
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
- 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
Parent topic: Operations