# MySQL v5 不受支持

> Source: https://strapi.nodejs.cn/cms/migration/v4-to-v5/breaking-changes/mysql5-unsupported

🌐 MySQL v5 is not supported in Strapi v5 anymore

Strapi v5 不再支持 MySQL v5；现在最低要求的版本是 MySQL v8。请将你的 MySQL 数据库升级到 v8.0 以使用 Strapi v5。

🌐 MySQL v5 is no longer supported in Strapi v5; MySQL v8 is now the minimum required version. Upgrade your MySQL database to v8.0 to use Strapi v5.

在 Strapi 5 中，不支持 MySQL 5 版本。

此页面是[重大更改数据库](/cms/migration/v4-to-v5/breaking-changes)的一部分，提供关于重大更改的信息以及从 Strapi v4 迁移到 Strapi 5 的附加说明。

🌐 This page is part of the [breaking changes database](/cms/migration/v4-to-v5/breaking-changes) and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

- Is this breaking change affecting plugins? No
- Is this breaking change automatically handled by a codemod? No

## 重大变更描述 {#breaking-change-description}

🌐 Breaking change description

**在 Strapi v4 中**

支持 MySQL v5。

🌐 MySQL v5 is supported.

**在 Strapi 5 中**

MySQL v5 不再受支持。<br />
MySQL v8 是最低所需版本。

<br />

## 迁移 {#migration}

🌐 Migration

本节重新组合了有关引入的重大更改的有用说明和程序。

🌐 This section regroups useful notes and procedures about the introduced breaking change.

### 注意 {#notes}

🌐 Notes

* [CLI 安装指南](/cms/installation/cli) 列出了 Strapi 5 支持的数据库。
* 请同时考虑，只有 `mysql2` 包可以与 Strapi 5 一起用于 MySQL 数据库（参见[相关的重大更改条目](/cms/migration/v4-to-v5/breaking-changes/only-mysql2-package-for-mysql)）。

### 迁移程序 {#migration-procedure}

🌐 Migration procedure

你的 Strapi 应用的代码库不需要手动迁移。连接信息可能会与 Strapi v4 中保持相同。

🌐 No manual migration is required for the codebase of your Strapi application.
Connection information will probably stay the same as in Strapi v4.

然而，要使用 Strapi v5，你必须将 MySQL 数据库升级到 8.0 版本（更多信息请参见官方 [MySQL documentation](https://dev.mysql.com/doc/relnotes/mysql/8.0/en/)）。
