One challenge you will face trying to connect to a PlanetScale database with Adminer is that it requires an SSL connection, which Adminer does not use by default. Not to worry, there’s a plugin for that.
- Download Adminer
- Download the login-ssl.php plugin
- Download the plugin base file
- Create a folder called
adminer
and mimic the structure below
- Find the path to your SSL certificate here
- Put the following inside
index.php
- Connect to the PlanetScale database as you would a local MySQL database, except use the URL from PlanetScale as the host (ending in
psdb.cloud
)