PlanetScale
PlanetScale logoPlanetScale · Feature trail

MySQL Database Design Best Practices

7 posts · Mar 2023 – Feb 2024

What this trail covers

PlanetScale offers robust support for MySQL and MariaDB, including advanced features for handling geospatial data and scaling options. This post details how to represent and query geographic features using MySQL's spatial data types and functions, enabling engineers to work with location-based information effectively within their databases. It covers data types like POINT, LINESTRING, and POLYGON, spatial formats (WKT, WKB), and common spatial functions for distance calculations, intersection ch. This post also details the process of upgrading from MySQL 5.7 to 8.0, covering character set changes, obsolete data types, authentication updates, new reserved words, SQL mode adjustments, C-style operator deprecation, server error code changes, and a zero-downtime upgrade path using PlanetScale's import tool. It highlights the benefits of upgrading to MySQL 8.0, including performance improvements and enhanced security features, and emphasizes the importance of performing this upgrade before the end-of-life for MySQL 5.7.

All PlanetScale trails