PlanetScale is a MySql compliant environment. The CLI is called pscale and has a dependency to the mysql CLI.
Much the same way GitHubs CLI gh has a dependency to the git cli.
Actually you'll find that pscale is built much on the same concept as gh - nice!
Now we need to setup the environment for use:
We're here on PlanetScale environment set up in the documentation.
Install using package manager
MacOs
Assuming MySql client is already installed (more details):
brew install planetscale/tap/pscale
Windows
Assuming MySql client is already installed (more details):
scoop bucket add pscale https://github.com/planetscale/scoop-bucket.git
scoop install pscale mysql
Codespace (Ubuntu)
Assuming your are on a default Codespace on GitHub (Ubuntu) - without MySql Client installed more details
sudo apt-get update && sudo apt-get install -y mysql-client
curl -LO https://github.com/planetscale/cli/releases/download/v0.131.0/pscale_0.131.0_linux_amd64.deb
sudo dpkg -i pscale_0.131.0_linux_amd64.deb
rm pscale_0.131.0_linux_amd64.deb
To test if it works simply run
PlanetScale is a MySql compliant environment. The CLI is called
pscaleand has a dependency to themysqlCLI.Much the same way GitHubs CLI
ghhas a dependency to thegitcli.Actually you'll find that
pscaleis built much on the same concept asgh- nice!Now we need to setup the environment for use:
We're here on PlanetScale environment set up in the documentation.
Install using package manager
MacOs
Assuming MySql client is already installed (more details):
Windows
Assuming MySql client is already installed (more details):
Codespace (Ubuntu)
Assuming your are on a default Codespace on GitHub (Ubuntu) - without MySql Client installed more details
sudo apt-get update && sudo apt-get install -y mysql-client curl -LO https://github.com/planetscale/cli/releases/download/v0.131.0/pscale_0.131.0_linux_amd64.deb sudo dpkg -i pscale_0.131.0_linux_amd64.deb rm pscale_0.131.0_linux_amd64.debTo test if it works simply run