Get your TiDB connection details
- Open the TiDB Cloud console.
- Select your cluster → Connect.
- Copy the host, port (
4000), database, username, and password. TiDB Cloud Serverless usernames are prefixed (e.g.xxxxx.root).
Create a read-only user
TiDB supports MySQL-compatible user management. Use the MySQL read-only user SQL:Add the connection to QueryBear
In the QueryBear dashboard → Connections → New connection → MySQL. Enter the TiDB host, port4000, database, username (with prefix if Serverless), and SSL mode require — TiDB Cloud requires TLS.
TiDB-specific notes
- Port 4000, not the MySQL default
3306. - TLS required on TiDB Cloud Serverless. Use
require. - Username prefix: Serverless clusters use a prefixed username — copy it exactly from the console.
- Distributed, MySQL-compatible:
SELECTqueries behave like MySQL. QueryBear’s schema introspection handles TiDB’s catalog.