The Authentication Method step is visible only during the installation or upgrade of MySQL 8.0.4 or higher. “身份验证方法”步骤仅在MySQL 8.0.4或更高版本的安装或升级过程中可见。It introduces a choice between two server-side authentication options. 它引入了在两个服务器端身份验证选项之间进行选择。The MySQL user accounts that you create in the next step will use the authentication method that you select in this step.您在下一步中创建的MySQL用户帐户将使用您在这一步中选择的身份验证方法。
MySQL 8.0 connectors and community drivers that use 使用libmysqlclient
8.0 now support the mysql_native_password
default authentication plugin. libmysqlclient
8.0的MySQL 8.0连接器和社区驱动程序现在支持mysql_native_password
默认身份验证插件。However, if you are unable to update your clients and applications to support this new authentication method, you can configure the MySQL server to use 但是,如果您无法更新客户端和应用程序以支持这种新的身份验证方法,则可以将MySQL服务器配置为使用mysql_native_password
for legacy authentication. mysql_native_password
进行旧身份验证。For more information about the implications of this change, see caching_sha2_password as the Preferred Authentication Plugin.有关此更改影响的更多信息,请参阅caching_sha2_password作为首选身份验证插件。
If you are installing or upgrading to MySQL 8.0.4 or higher, select one of the following authentication methods:如果您正在安装或升级到MySQL 8.0.4或更高版本,请选择以下身份验证方法之一:
Use Strong Password Encryption for Authentication (RECOMMENDED)使用强密码加密进行身份验证(推荐)
MySQL 8.0 supports a new authentication based on improved, stronger SHA256-based password methods. It is recommended that all new MySQL server installations use this method going forward.MySQL 8.0支持基于改进的、更强的基于SHA256的密码方法的新身份验证。建议所有新的MySQL服务器安装今后都使用此方法。
The 服务器上的caching_sha2_password
authentication plugin on the server requires new versions of connectors and clients, which add support for the new MySQL 8.0 default authentication.caching_sha2_password
身份验证插件需要新版本的连接器和客户端,这增加了对新MySQL 8.0默认身份验证的支持。
Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)使用传统身份验证方法(保留MySQL 5x兼容性)
Using the old MySQL 5.x legacy authentication method should be considered only in the following cases:只有在以下情况下才应考虑使用旧的MySQL 5x旧版身份验证方法:
Applications cannot be updated to use MySQL 8.0 connectors and drivers.应用程序无法更新为使用MySQL 8.0连接器和驱动程序。
Recompilation of an existing application is not feasible.重新编译现有的应用程序是不可行的。
An updated, language-specific connector or driver is not available yet.更新的特定于语言的连接器或驱动程序尚不可用。