TiDB SSL Connection Issues

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB ssl连接问题

| username: Hacker_wV92qfW3

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?

| username: tracy0984 | Original post link

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.

| username: ljun0712 | Original post link

  1. This is not an SSL connection issue;
  2. When connecting to MySQL, no username was specified, so it logged in using the default account root.
| username: wuxiangdong | Original post link

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.

| username: wuxiangdong | Original post link

I am using RDS.

| username: Hacker_wV92qfW3 | Original post link

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.