Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
---
type: example
summary: Connect Hyperdrive to a Planetscale Postgres database.
summary: Connect Hyperdrive to a PlanetScale MySQL database.
pcx_content_type: example
title: Planetscale
title: PlanetScale
sidebar:
order: 4
description: Connect Hyperdrive to a Planetscale Postgres database.
description: Connect Hyperdrive to a PlanetScale MySQL database.
---

import { Render } from "~/components";

This example shows you how to connect Hyperdrive to a [Planetscale](https://Planetscale.tech/) Postgres database.
This example shows you how to connect Hyperdrive to a [PlanetScale](https://planetscale.com/) MySQL database.

## 1. Allow Hyperdrive access

You can connect Hyperdrive to any existing Planetscale database by creating a new user and fetching your database connection string.
You can connect Hyperdrive to any existing PlanetScale database by creating a new user and fetching your database connection string.

### Planetscale Dashboard

1. Go to the [**Planetscale dashboard**](https://app.planetscale.com/) and select the database you wish to connect to.
1. Go to the [**PlanetScale dashboard**](https://app.planetscale.com/) and select the database you wish to connect to.
2. Click **Connect**. Enter `hyperdrive-user` as the password name (or your preferred name) and configure the permissions as desired. Select **Create password**. Note the username and password as they will not be displayed again.
3. Select **Other** as your language or framework. Note down the database host, database name, database username, and password. You will need these to create a database configuration in Hyperdrive.

Expand Down