MySQL / MariaDB
Connect to a MySQL or MariaDB database.
Usage
sql-studio mysql <URL>Arguments
| Argument | Description | Env Var |
|---|---|---|
URL | MySQL connection URL | URL |
Connection URL Format
mysql://user:password@host:port/databaseNotes
SQL Studio uses rustls for TLS, so connections to MySQL servers with TLS enabled are supported out of the box.
Examples
# Connect to a local MySQL database
sql-studio mysql mysql://root:password@localhost/sample
# Connect to a remote MySQL database
sql-studio mysql mysql://user:pass@db.example.com:3306/mydb