Preface and Legal Notices前言和法律声明

This is the Reference Manual for the MySQL Database System, version 8.0, through release 8.0.25. 这是MySQL数据库系统8.0版到8.0.25版的参考手册。Differences between minor versions of MySQL 8.0 are noted in the present text with reference to release numbers (8.0.x). MySQL8.0次要版本之间的差异在本文中提到了版本号(8.0.x)。For license information, see the Legal Notices.有关许可证信息,请参阅法律声明

This manual is not intended for use with older versions of the MySQL software due to the many functional and other differences between MySQL 8.0 and previous versions. 由于MySQL8.0与以前版本在功能和其他方面存在许多差异,因此本手册不适用于较旧版本的MySQL软件。If you are using an earlier release of the MySQL software, please refer to the appropriate manual. 如果您使用的是MySQL软件的早期版本,请参阅相应的手册。For example, MySQL 5.7 Reference Manual covers the 5.7 series of MySQL software releases.例如,MySQL 5.7参考手册涵盖了MySQL 5.7系列软件版本。

Licensing information—MySQL 8.0.许可信息MySQL 8.0。  This product may include third-party software, used under license. 本产品可能包括在许可证下使用的第三方软件。If you are using a Commercial release of MySQL 8.0, see the MySQL 8.0 Commercial Release License Information User Manual for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. 如果您使用的是商业版MySQL 8.0,请参阅MySQL 8.0商业版许可证信息用户手册以获取许可信息,包括与此商业版中可能包含的第三方软件相关的许可信息。If you are using a Community release of MySQL 8.0, see the MySQL 8.0 Community Release License Information User Manual for licensing information, including licensing information relating to third-party software that may be included in this Community release.如果您使用的是MySQL 8.0社区版本,请参阅MySQL 8.0社区版本许可证信息用户手册以获取许可信息,包括与此社区版本中可能包含的第三方软件相关的许可信息。

Licensing information—MySQL NDB Cluster 8.0.许可信息MySQL NDB Cluster 8.0。  If you are using a Community release of MySQL NDB Cluster 8.0, see the MySQL NDB Cluster 8.0 Community Release License Information User Manual for licensing information, including licensing information relating to third-party software that may be included in this Community release.如果您使用的是MySQL NDB Cluster 8.0社区版本,请参阅MySQL NDB Cluster 8.0社区版本许可证信息用户手册以获取许可信息,包括与此社区版本中可能包含的第三方软件相关的许可信息。

Legal Notices法律声明

Copyright © 1997, 2021, Oracle and/or its affiliates.甲骨文和/或其附属公司。

This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. 本软件和相关文档是根据包含使用和披露限制的许可协议提供的,受知识产权法保护。Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. 除非您的许可协议明确允许或法律允许,否则您不得以任何形式或通过任何方式使用、复制、复制、翻译、广播、修改、许可、传输、分发、展示、表演、出版或展示任何部分。Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.除非法律要求互操作性,否则禁止对本软件进行反向工程、反汇编或反编译。

The information contained herein is subject to change without notice and is not warranted to be error-free. 此处包含的信息如有更改,恕不另行通知,并且不保证无错误。If you find any errors, please report them to us in writing.如果您发现任何错误,请以书面形式向我们报告。

If this is software or related documentation that is delivered to the U.S. 如果这是交付到美国的软件或相关文档。Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:政府或代表美国政府授权的任何人,则适用以下通知:

U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or "commercial computer software documentation" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. 美国政府最终用户:甲骨文程序(包括任何操作系统、集成软件、任何嵌入、安装或激活在交付硬件上的程序,以及这些程序的修改)和甲骨文计算机文档或其他甲骨文数据交付给美国政府最终用户或由美国政府最终用户访问是“商业计算机软件”或“商业计算机软件文档”,符合适用的联邦采购法规和机构特定补充法规。As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. 因此,使用、复制、复制、发布、显示、披露、修改、准备衍生作品和/或改编 i)甲骨文程序(包括任何操作系统、集成软件、嵌入、安装或激活在交付硬件上的任何程序,以及对这些程序的修改),ii)甲骨文计算机文档和/或 iii)其他甲骨文数据,受适用合同中许可证中规定的权利和限制的约束。The terms governing the U.S. Government's use of Oracle cloud services are defined by the applicable contract for such services. 管理美国政府使用甲骨文云服务的条款由此类服务的适用合同定义。No other rights are granted to the U.S. Government.美国政府没有获得任何其他权利。

This software or hardware is developed for general use in a variety of information management applications. 此软件或硬件是为各种信息管理应用程序中的通用而开发的。It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. 它不是开发或用于任何固有危险的应用,包括可能造成人身伤害风险的应用。If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. 如果您在危险应用中使用本软件或硬件,则您应负责采取所有适当的故障保护、备份、冗余和其他措施,以确保其安全使用。Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.对于在危险应用中使用本软件或硬件造成的任何损害,甲骨文集团及其附属公司概不承担任何责任。

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Oracle和Java是甲骨文和/或其附属公司的注册商标。Other names may be trademarks of their respective owners.其他名称可能是其各自所有者的商标。

Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. Intel和Intel Inside是Intel集团的商标或注册商标。All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. 所有SPARC商标均经许可使用,是SPARC International,Inc.的商标或注册商标。AMD、Epyc和AMD徽标是Advanced Micro Devices的商标或注册商标。UNIX is a registered trademark of The Open Group.UNIX是Open Group的注册商标。

This software or hardware and documentation may provide access to or information about content, products, and services from third parties. 此软件或硬件和文档可提供对来自第三方的内容、产品和服务的访问或信息。Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. 除非您与甲骨文之间的适用协议中另有规定,否则甲骨文集团及其附属公司对第三方内容、产品和服务不承担任何责任,并明确放弃任何形式的担保。Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.甲骨文集团及其附属公司对因您访问或使用第三方内容、产品或服务而产生的任何损失、成本或损害概不负责,除非您与甲骨文之间的适用协议另有规定。

This documentation is NOT distributed under a GPL license. Use of this documentation is subject to the following terms:此文档不是根据GPL许可证分发的。使用本文件应遵守以下条款:

You may create a printed copy of this documentation solely for your own personal use. 您可以创建本文档的打印副本,仅供您个人使用。Conversion to other formats is allowed as long as the actual content is not altered or edited in any way. 只要不以任何方式更改或编辑实际内容,就可以转换为其他格式。You shall not publish or distribute this documentation in any form or on any media, except if you distribute the documentation in a manner similar to how Oracle disseminates it (that is, electronically for download on a Web site with the software) or on a CD-ROM or similar medium, provided however that the documentation is disseminated together with the software on the same medium. 您不得以任何形式或在任何媒体上发布或分发本文档,除非您以类似于Oracle发布本文档的方式(即,以电子方式将本软件下载到网站上)或以CD-ROM或类似媒体发布本文档,但前提是文件与软件在同一媒介上一起传播。Any other use, such as any dissemination of printed copies or use of this documentation, in whole or in part, in another publication, requires the prior written consent from an authorized representative of Oracle. 任何其他用途,如在其他出版物中传播印刷本或使用本文档的全部或部分内容,均需事先获得Oracle授权代表的书面同意。Oracle and/or its affiliates reserve any and all rights to this documentation not expressly granted above.Oracle和/或其附属公司保留对上述未明确授予的本文档的任何和所有权利。

Documentation Accessibility文档可访问性

For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at https://www.oracle.com/corporate/accessibility/.有关Oracle对辅助功能的承诺的信息,请访问Oracle辅助功能计划网站https://www.oracle.com/corporate/accessibility/

Access to Oracle Support for Accessibility访问Oracle辅助功能支持

Oracle customers that have purchased support have access to electronic support through My Oracle Support. 购买了支持的Oracle客户可以通过My Oracle support访问电子支持。For information, visit https://www.oracle.com/corporate/accessibility/learning-support.html#support-tab.有关信息,请访问https://www.oracle.com/corporate/accessibility/learning-support.html#support-tab