Skip to main content
err:unkey:data:database_already_exists
The database you asked for already exists where you tried to add it. You get HTTP 409.
Example response

Likely causes

  • databases.connectDatabase: the project already has this PlanetScale database.
  • databases.createDatabase: the PlanetScale organization already has a database with this name.

How to fix

  1. For databases.connectDatabase, list the databases of the project with databases.listDatabases. The database is already there, so there’s nothing to connect. To connect an environment to it, use its id with connections.createConnection.
  2. For databases.createDatabase, choose another name. If the existing database is yours, connect it with databases.connectDatabase instead.
Last modified on November 30, 2026