Connecting to PlanetScale
- Open the connections page in preferences, see managing connections for more information.
- Click the
Add new Connection
button at the top of the connections page.
- Select
MySQL
from the list (PlanetScale uses the MySQL driver).
- Give a
Connection name
for your own internal reference. - For
Hostname
, enter the hostname of your database server. - For
Port
, use the default3306
, or enter the port used by your server. - For
Database
, enter the name of your database. - For
Username
andPassword
, enter the username and password from PlanetScale. These are optional. - Toggle connection type for direct or cloud.
- Share the connection with your team.
- Enable
SSL
. PlanetScale requires SSL, but you can leave the certificates blank to use the default Debian OS certificate. - (Optional) Configure
SSH
settings. - Hit
Connect
and you're all set!
Happy querying! 🍭
Updated over 1 year ago