Connect MySQL
Detailed guide for connecting MySQL to Data Explorer, including SSL configuration, Docker setup, and common troubleshooting.
MySQL
3306
mysql://
Pooled Adapter
How to Connect
Method 1: Connection URI
# General format
mysql://root:password@localhost:3306/mydb
Method 2: Connection Form
HostlocalhostIP address or hostname of the database serverPort3306Default port: 3306UsernamerootLogin user with database accessPassword••••••Password (AES-256 encrypted before storage)DatabasemydbDatabase name you want to exploreConnection Guardrails
SSH Tunneling (Secure)
- Supports authentication via password or Private Key (OpenSSH format).
- Automatic destination IP validation (SSRF Protection).
- Periodic tunnel health checks to maintain connectivity.
Supported Features
- Full INFORMATION_SCHEMA introspection
- Foreign key detection across InnoDB tables
- Index analysis and cardinality stats
- JSON column type support
- Stored procedure and function listing
- Trigger introspection
- Charset/collation information
Internal Introspection Query
# Table structure analysis query
SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, IS_NULLABLE
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = DATABASE()
ORDER BY TABLE_NAME, ORDINAL_POSITION;
Docker Quick Start
# Start MySQL container
docker run -d \
--name data-explorer-mysql \
-e MYSQL_ROOT_PASSWORD=secret123 \
-e MYSQL_DATABASE=dev_database \
-p 3306:3306 \
mysql:8.0
Advanced Tuning
Connection Pooling
By default, the system maintains a connection pool to optimize response speed. For databases with limited sessions (like Supabase Free Tier), consider reducing the timeout to free up connections faster.
SSL/TLS Handshake
The system supports SSL Modes "prefer" and "require". For connections requiring custom CA certificates, you need to mount the certificate file into the /certs directory of the backend server.
Security Note
For PlanetScale or similar providers, SSL is mandatory. Use the provided connection string directly from the dashboard.
Ready to explore data?
Join the community on GitHub to contribute to the smartest local database IDE.
Launch App