Skip to main content
This documentation covers some commonly encountered errors and approaches for addressing them.
If you are facing issues or have questions that were not answered in the documentation, the best course of action is to open a support ticket.Additionally, you can find some broader limitations in the PlanetScale system limits documentation.

MySQL and Vitess errors

PlanetScale Vitess databases are powered by Vitess and MySQL. Many errors you encounter will contain a substring of the form SQL Error [XXXX] where XXXX is some integer number. Often, these are errors that are passed along back to the client from MySQL. There are hundreds of MySQL error codes documented on the MySQL error codes page. For example, say you encounter this error:
The second line says SQL Error [1364], which corresponds to the ER_NO_DEFAULT_FOR_FIELD error in MySQL. Knowing this, you can make the appropriate changes to your query or schema to mitigate the error. You can also search the MySQL docs and other online sources using the error code, as there is a long history of MySQL questions and answers online. One specific code you may come across is SQL Error [1105], which represents an unknown error in MySQL. On PlanetScale, it’s likely that such an error is actually coming from Vitess, which also has an error documentation page. Note that a number of older Vitess errors used the 1105 code, but there are many other errors documented there as well. We recommend you reference this for Vitess-specific errors. Below, we document more common errors from our customers, and provide suggestions for how to address them.

PlanetScale-specific errors

You also may encounter error messages in the PlanetScale UI or on specific PlanetScale features such as safe migrations or workflows. Here, we document a selection of those errors you may run into.

Other errors

If you are encountering an error not listed here, we recommend you use the MySQL and Vitess error documentation pages to narrow down your issue. If you are unable to identify it on your own, please reach out to support.

Need help?

Get help from the PlanetScale Support team, or join our Discord community to see how others are using PlanetScale.