Skip to content

Connect to PlanetScale MySQL from Mac

Use branch credentials for your PlanetScale Vitess database to connect through TableAI’s MySQL driver.

Have the target database and branch selected, with credentials for that branch. This guide covers PlanetScale’s MySQL-compatible Vitess databases.

Get the host, port, database name, user name, and password from the branch’s connection information. PlanetScale calls these credentials a branch password; see its connection documentation.

Name each saved TableAI connection after its database and branch so you can identify the destination before editing.

  1. Open a new connection and select Driver › MySQL.
  2. Enter a Name that includes the branch.
  3. Copy the supplied Host, Port, Database, and User into the form.
  4. Enter the branch password in Password.
  5. Select SSL Mode › Verify Full.
  6. Click Test, then Save & Connect after success.

Use the supplied database hostname for certificate verification. Follow SSL/TLS settings if your organization’s connection instructions specify a Root CA file.

If your organization uses a private endpoint or restricted network access, obtain that route’s connection details from its administrator.

Access denied for user

Confirm that the branch password still exists and belongs to the intended branch. Compare all supplied fields, including the database name, before creating replacement credentials.

Use error 1045 for account checks, TLS certificate errors for verification failures, or connection troubleshooting when the endpoint does not answer.

Continue with edit data safely, or return to the MySQL overview.