# Preface and Legal Notices

 This is the Reference Manual for the MySQL Database System, version 8.0, through release 8.0.28. Differences between minor versions of MySQL 8.0 are noted in the present text with reference to release numbers (8.0.*`x`*). For license information, see the [Legal Notices](preface.html#legalnotice).

 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. If you are using an earlier release of the MySQL software, please refer to the appropriate manual. For example, [*MySQL 5.7 Reference Manual*](https://dev.mysql.com/doc/refman/5.7/en/) covers the 5.7 series of MySQL software releases.

**Licensing information—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](https://downloads.mysql.com/docs/licenses/mysqld-8.0-com-en.pdf) for licensing information, including licensing information relating to third-party software that may be included in this Commercial release. If you are using a *Community* release of MySQL 8.0, see the [MySQL 8.0 Community Release License Information User Manual](https://downloads.mysql.com/docs/licenses/mysqld-8.0-gpl-en.pdf) for licensing information, including licensing information relating to third-party software that may be included in this Community release.

**Licensing information—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](https://downloads.mysql.com/docs/licenses/cluster-8.0-gpl-en.pdf) for licensing information, including licensing information relating to third-party software that may be included in this Community release.

## Legal Notices

 Copyright © 1997, 2022, 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. 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. Other names may be trademarks of their respective owners.

 Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. 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. UNIX is a registered trademark of The 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:

 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. 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 and/or its affiliates reserve any and all rights to this documentation not expressly granted above.

## Documentation Accessibility

 For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at [https://www.oracle.com/corporate/accessibility/](https://www.oracle.com/corporate/accessibility/).

## Access to Oracle Support for Accessibility

 Oracle customers that have purchased support have access to electronic support through 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).

[ HOME](index.html) [ UP](index.html) [NEXT ](introduction.html)

[Related Documentation]()

[MySQL 8.0 Release Notes](/doc/relnotes/mysql/8.0/en/)  
[MySQL 8.0 Source Code Documentation](/doc/dev/mysql-server/latest/)  

[ Download this Manual ]()

[PDF (US Ltr)](https://downloads.mysql.com/docs/refman-8.0-en.pdf) - 42.3Mb  
[PDF (A4)](https://downloads.mysql.com/docs/refman-8.0-en.a4.pdf) - 42.4Mb  
[Man Pages (TGZ)](https://downloads.mysql.com/docs/refman-8.0-en.man-gpl.tar.gz) - 269.0Kb  
[Man Pages (Zip)](https://downloads.mysql.com/docs/refman-8.0-en.man-gpl.zip) - 378.8Kb  
[Info (Gzip)](https://downloads.mysql.com/docs/mysql-8.0.info.gz) - 4.1Mb  
[Info (Zip)](https://downloads.mysql.com/docs/mysql-8.0.info.zip) - 4.1Mb  

[Excerpts from this Manual]()

[MySQL Backup and Recovery](/doc/mysql-backup-excerpt/8.0/en/)  
[MySQL Globalization](/doc/mysql-g11n-excerpt/8.0/en/)  
[MySQL Information Schema](/doc/mysql-infoschema-excerpt/8.0/en/)  
[MySQL Installation Guide](/doc/mysql-installation-excerpt/8.0/en/)  
[Security in MySQL](/doc/mysql-security-excerpt/8.0/en/)  
[Starting and Stopping MySQL](/doc/mysql-startstop-excerpt/8.0/en/)  
[MySQL and Linux/Unix](/doc/mysql-linuxunix-excerpt/8.0/en/)  
[MySQL and Windows](/doc/mysql-windows-excerpt/8.0/en/)  
[MySQL and macOS](/doc/mysql-macos-excerpt/8.0/en/)  
[MySQL and Solaris](/doc/mysql-solaris-excerpt/8.0/en/)  
[Building MySQL from Source](/doc/mysql-sourcebuild-excerpt/8.0/en/)  
[MySQL Restrictions and Limitations](/doc/mysql-reslimits-excerpt/8.0/en/)  
[MySQL Partitioning](/doc/mysql-partitioning-excerpt/8.0/en/)  
[MySQL Tutorial](/doc/mysql-tutorial-excerpt/8.0/en/)  
[MySQL Performance Schema](/doc/mysql-perfschema-excerpt/8.0/en/)  
[MySQL Replication](/doc/mysql-replication-excerpt/8.0/en/)  
[Using the MySQL Yum Repository](/doc/mysql-repo-excerpt/8.0/en/)  
[MySQL NDB Cluster 8.0](/doc/mysql-cluster-excerpt/8.0/en/)  

$(function() { var doc = new $.doc({ 'mobile': $.browser.mobile, 'docId': 1, 'highlight': true });
});

[]()

**Contact MySQL Sales**  
 USA/Canada: +1-866-221-0634 ([More Countries »](https://www.mysql.com/about/contact/phone/))

[](http://www.oracle.com/) © 2022, Oracle Corporation and/or its affiliates

[](http://www.facebook.com/mysql) [](https://twitter.com/mysql) [](https://www.linkedin.com/company/mysql) [](http://www.youtube.com/mysqlchannel)

* [Products](https://www.mysql.com/products/)
* [MySQL Database Service](https://www.mysql.com/cloud/)
* [MySQL Enterprise Edition](https://www.mysql.com/products/enterprise/)
* [MySQL Standard Edition](https://www.mysql.com/products/standard/)
* [MySQL Classic Edition](https://www.mysql.com/products/classic/)
* [MySQL Cluster CGE](https://www.mysql.com/products/cluster/)
* [MySQL Embedded (OEM/ISV)](https://www.mysql.com/oem/)

* [Services](https://www.mysql.com/services/)
* [Training](https://www.mysql.com/training/)
* [Certification](https://www.mysql.com/certification/)
* [Consulting](https://www.mysql.com/consulting/)
* [Support](https://www.mysql.com/support/)

* [Downloads](https://www.mysql.com/downloads/)
* [MySQL Community Server](https://dev.mysql.com/downloads/mysql/)
* [MySQL NDB Cluster](https://dev.mysql.com/downloads/cluster/)
* [MySQL Shell](https://dev.mysql.com/downloads/shell/)
* [MySQL Router](https://dev.mysql.com/downloads/router/)
* [MySQL Workbench](https://dev.mysql.com/downloads/workbench/)

* [Documentation](https://dev.mysql.com/doc/)
* [MySQL Reference Manual](https://dev.mysql.com/doc/refman/en/)
* [MySQL Workbench](https://dev.mysql.com/doc/workbench/en/)
* [MySQL NDB Cluster](https://dev.mysql.com/doc/index-cluster.html)
* [MySQL Connectors](https://dev.mysql.com/doc/index-connectors.html)
* [Topic Guides](https://dev.mysql.com/doc/#topic)

* [About MySQL](https://www.mysql.com/about/)
* [Contact Us](https://www.mysql.com/about/contact/)
* [Blogs](https://blogs.oracle.com/mysql/)
* [How to Buy](https://www.mysql.com/buy-mysql/)
* [Partners](https://www.mysql.com/partners/)
* [Job Opportunities](https://www.mysql.com/about/jobs/)
* [Site Map](https://www.mysql.com/sitemap.html)

[](http://www.oracle.com/) © 2022, Oracle Corporation and/or its affiliates

[Legal Policies](https://www.mysql.com/about/legal/) | [Your Privacy Rights](http://www.oracle.com/us/legal/privacy/index.htm) | [Terms of Use](http://www.oracle.com/us/legal/terms/index.html) | [Trademark Policy](http://www.oracle.com/us/legal/third-party-trademarks/index.html) | [Contributor Agreement](http://www.oracle.com/technetwork/community/oca-486395.html) |

 if ((oracle.truste.api.getGdprConsentDecision().consentDecision) && (oracle.truste.api.getGdprConsentDecision().consentDecision.indexOf(0) != -1 || oracle.truste.api.getGdprConsentDecision().consentDecision.indexOf(2) != -1) ) { document.write('\<script src="https://labs.mysql.com/common/js/metrics/s\_code\_remote.js"\>\<\\/script\>'); document.write('\<script type="text/javascript" async src="//c.oracleinfinity.io/acs/account/wh3g12c3gg/js/mysql/odc.js?\_ora.context=analytics:production"\>\<\\/script\>'); }
