Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: TiDB ssl连接问题
When establishing an SSL encrypted connection with TiDB, a username is required, but it seems that MySQL does not require a username and password.
Was it necessary to input this username from the initial design of TiDB?
When you connect to the MySQL database, you use the default root user, right? Did you change the user when connecting to the TiDB database? It’s not the default root.
Previously, when doing security compliance, SSL was enabled, and a certificate needed to be imported, but an account and password also had to be entered. SSL is only for network transmission encryption, and after enabling it, there will be a slight network delay.
For TiDB, SSL connections need to be specifically assigned to each user, but for MySQL, once SSL is enabled, it seems that every user can use SSL connections.