没有合适的资源?快使用搜索试试~ 我知道了~
MySQL8.0 英语文档
试读
6206页
需积分: 0 1 下载量 173 浏览量
更新于2022-11-18
收藏 42.46MB PDF 举报
《MySQL 8.0 参考手册》是MySQL数据库系统的核心文档,涵盖了从8.0到8.0.32的所有版本,同时也包括基于8.0版本的NDB集群直至8.0.32-ndb-8.0.32的详细信息。手册可能包含尚未发布的MySQL版本的新特性描述。若想了解已发布的版本信息,可以查阅MySQL 8.0发行说明。
MySQL 8.0引入了一系列重要的新特性。这些特性并非在每个MySQL 8.0的版本中都包含,具体包含哪些特性可能会因您所使用的MySQL 8.0的授权版本而异。如果您对您所用版本包含的特性有疑问,建议查阅您的MySQL 8.0许可协议或咨询Oracle的销售代表。
在每个发行版的变更详情,可以在MySQL 8.0发行说明中找到。对于法律信息,包括许可信息,可以在前言和法律通知部分查阅。手册的目的是帮助用户更好地理解和使用MySQL,如果在使用过程中遇到问题,可以访问MySQL论坛,与其他MySQL用户交流讨论。
手册内容广泛,包含了以下主题:
1. 前言和法律通知:这部分提供了手册的基本信息,以及关于版权、许可和其他法律事项的通知。
2. 一般信息:这部分概述了MySQL数据库管理系统的基本信息,包括手册的目的、MySQL的主要特点以及MySQL的历史。
- 关于本手册:详细解释了手册的结构和用途。
- MySQL数据库管理系统的概览:介绍了MySQL是什么,以及它的主要功能,如快速、可扩展、易于使用等特性。
- MySQL的历史:简述了MySQL的发展历程,从诞生到各个重要版本的里程碑。
3. MySQL的主要特性包括但不限于:
- 改进的性能和可伸缩性:通过优化查询处理和存储引擎来提升速度。
- 强大的数据安全性:提供更高级别的数据加密和权限控制机制。
- InnoDB存储引擎的增强:支持行级锁定,增强的事务处理能力,以及更高效的崩溃恢复机制。
- JSON支持:集成JSON数据类型,便于处理半结构化数据。
- 视图的改进:允许创建更复杂和安全的视图。
- 全新的窗口函数:提供了更强大的数据分析工具。
- 更灵活的分区选项:提高了大型表的管理和查询效率。
- 改进的复制功能:包括半同步复制和GTID(全局事务标识符)复制,增强了高可用性和灾难恢复能力。
- 更强的SQL标准支持:使得MySQL更符合ANSI SQL标准。
4. 使用指南:提供了安装、配置、备份、恢复、性能调优和日常管理的详细步骤。
5. SQL语法参考:详细描述了MySQL的SQL语法,包括数据定义、数据操纵、查询和事务处理语句。
6. 存储引擎介绍:涵盖了MySQL的各种存储引擎,如InnoDB、MyISAM、Memory等,以及它们的特点和适用场景。
7. 客户端程序和实用工具:介绍了一系列用于连接和管理MySQL服务器的工具。
8. 错误代码和消息:列出了可能遇到的错误代码及其含义,有助于诊断和解决问题。
9. 兼容性考虑:描述了MySQL与其他数据库系统在语法和行为上的兼容性。
《MySQL 8.0参考手册》是MySQL用户和开发者的宝贵资源,无论你是初学者还是经验丰富的数据库管理员,都能从中获取到丰富的知识和实践经验。通过深入学习和实践,您可以充分利用MySQL 8.0提供的强大功能,为您的应用提供高效、安全的数据管理解决方案。
MySQL 8.0 Reference Manual
Including MySQL NDB Cluster 8.0
Abstract
This is the MySQL Reference Manual. It documents MySQL 8.0 through 8.0.32, as well as NDB Cluster releases
based on version 8.0 of NDB through 8.0.32-ndb-8.0.32, respectively. It may include documentation of features of
MySQL versions that have not yet been released. For information about which versions have been released, see
the MySQL 8.0 Release Notes.
MySQL 8.0 features. This manual describes features that are not included in every edition of MySQL 8.0; such
features may not be included in the edition of MySQL 8.0 licensed to you. If you have any questions about the
features included in your edition of MySQL 8.0, refer to your MySQL 8.0 license agreement or contact your Oracle
sales representative.
For notes detailing the changes in each release, see the MySQL 8.0 Release Notes.
For legal information, including licensing information, see the Preface and Legal Notices.
For help with using MySQL, please visit the MySQL Forums, where you can discuss your issues with other
MySQL users.
Document generated on: 2022-11-17 (revision: 74541)
Table of Contents
Preface and Legal Notices ....................................................................................................... xxvii
1 General Information ................................................................................................................... 1
1.1 About This Manual .......................................................................................................... 2
1.2 Overview of the MySQL Database Management System ................................................... 4
1.2.1 What is MySQL? .................................................................................................. 4
1.2.2 The Main Features of MySQL ............................................................................... 5
1.2.3 History of MySQL ................................................................................................. 8
1.3 What Is New in MySQL 8.0 ............................................................................................. 8
1.4 Server and Status Variables and Options Added, Deprecated, or Removed in MySQL
8.0 ...................................................................................................................................... 58
1.5 MySQL Information Sources .......................................................................................... 83
1.6 How to Report Bugs or Problems .................................................................................. 84
1.7 MySQL Standards Compliance ...................................................................................... 88
1.7.1 MySQL Extensions to Standard SQL ................................................................... 89
1.7.2 MySQL Differences from Standard SQL .............................................................. 92
1.7.3 How MySQL Deals with Constraints .................................................................... 95
1.8 Credits .......................................................................................................................... 97
1.8.1 Contributors to MySQL ....................................................................................... 97
1.8.2 Documenters and translators ............................................................................ 101
1.8.3 Packages that support MySQL .......................................................................... 103
1.8.4 Tools that were used to create MySQL .............................................................. 103
1.8.5 Supporters of MySQL ....................................................................................... 104
2 Installing and Upgrading MySQL ............................................................................................ 105
2.1 General Installation Guidance ...................................................................................... 107
2.1.1 Supported Platforms ......................................................................................... 108
2.1.2 Which MySQL Version and Distribution to Install ................................................ 108
2.1.3 How to Get MySQL .......................................................................................... 109
2.1.4 Verifying Package Integrity Using MD5 Checksums or GnuPG ............................ 109
2.1.5 Installation Layouts ........................................................................................... 125
2.1.6 Compiler-Specific Build Characteristics .............................................................. 125
2.2 Installing MySQL on Unix/Linux Using Generic Binaries ................................................ 126
2.3 Installing MySQL on Microsoft Windows ....................................................................... 129
2.3.1 MySQL Installation Layout on Microsoft Windows ............................................... 131
2.3.2 Choosing an Installation Package ...................................................................... 131
2.3.3 MySQL Installer for Windows ............................................................................ 133
2.3.4 Installing MySQL on Microsoft Windows Using a noinstall ZIP Archive ............ 161
2.3.5 Troubleshooting a Microsoft Windows MySQL Server Installation ........................ 169
2.3.6 Windows Postinstallation Procedures ................................................................ 170
2.3.7 Windows Platform Restrictions .......................................................................... 172
2.4 Installing MySQL on macOS ........................................................................................ 174
2.4.1 General Notes on Installing MySQL on macOS .................................................. 174
2.4.2 Installing MySQL on macOS Using Native Packages .......................................... 175
2.4.3 Installing and Using the MySQL Launch Daemon ............................................... 179
2.4.4 Installing and Using the MySQL Preference Pane .............................................. 182
2.5 Installing MySQL on Linux ........................................................................................... 186
2.5.1 Installing MySQL on Linux Using the MySQL Yum Repository ............................. 187
2.5.2 Installing MySQL on Linux Using the MySQL APT Repository ............................. 191
2.5.3 Installing MySQL on Linux Using the MySQL SLES Repository ........................... 192
2.5.4 Installing MySQL on Linux Using RPM Packages from Oracle ............................. 192
2.5.5 Installing MySQL on Linux Using Debian Packages from Oracle .......................... 196
2.5.6 Deploying MySQL on Linux with Docker ............................................................ 197
2.5.7 Installing MySQL on Linux from the Native Software Repositories ........................ 210
2.5.8 Installing MySQL on Linux with Juju .................................................................. 213
2.5.9 Managing MySQL Server with systemd ............................................................. 213
2.6 Installing MySQL Using Unbreakable Linux Network (ULN) ........................................... 218
iii
MySQL 8.0 Reference Manual
2.7 Installing MySQL on Solaris ......................................................................................... 218
2.7.1 Installing MySQL on Solaris Using a Solaris PKG .............................................. 219
2.8 Installing MySQL on FreeBSD ..................................................................................... 220
2.9 Installing MySQL from Source ..................................................................................... 221
2.9.1 Source Installation Methods .............................................................................. 221
2.9.2 Source Installation Prerequisites ....................................................................... 222
2.9.3 MySQL Layout for Source Installation ................................................................ 223
2.9.4 Installing MySQL Using a Standard Source Distribution ...................................... 223
2.9.5 Installing MySQL Using a Development Source Tree .......................................... 227
2.9.6 Configuring SSL Library Support ....................................................................... 229
2.9.7 MySQL Source-Configuration Options ............................................................... 230
2.9.8 Dealing with Problems Compiling MySQL .......................................................... 261
2.9.9 MySQL Configuration and Third-Party Tools ...................................................... 262
2.9.10 Generating MySQL Doxygen Documentation Content ....................................... 263
2.10 Postinstallation Setup and Testing ............................................................................. 263
2.10.1 Initializing the Data Directory ........................................................................... 264
2.10.2 Starting the Server ......................................................................................... 269
2.10.3 Testing the Server .......................................................................................... 272
2.10.4 Securing the Initial MySQL Account ................................................................. 274
2.10.5 Starting and Stopping MySQL Automatically .................................................... 275
2.11 Upgrading MySQL ..................................................................................................... 276
2.11.1 Before You Begin ........................................................................................... 277
2.11.2 Upgrade Paths ............................................................................................... 278
2.11.3 What the MySQL Upgrade Process Upgrades .................................................. 278
2.11.4 Changes in MySQL 8.0 ................................................................................... 282
2.11.5 Preparing Your Installation for Upgrade ........................................................... 298
2.11.6 Upgrading MySQL Binary or Package-based Installations on Unix/Linux ............ 302
2.11.7 Upgrading MySQL with the MySQL Yum Repository ......................................... 306
2.11.8 Upgrading MySQL with the MySQL APT Repository ......................................... 308
2.11.9 Upgrading MySQL with the MySQL SLES Repository ....................................... 308
2.11.10 Upgrading MySQL on Windows ..................................................................... 308
2.11.11 Upgrading a Docker Installation of MySQL ..................................................... 310
2.11.12 Upgrade Troubleshooting .............................................................................. 310
2.11.13 Rebuilding or Repairing Tables or Indexes ..................................................... 311
2.11.14 Copying MySQL Databases to Another Machine ............................................ 312
2.12 Downgrading MySQL ................................................................................................. 313
2.13 Perl Installation Notes ................................................................................................ 313
2.13.1 Installing Perl on Unix ..................................................................................... 313
2.13.2 Installing ActiveState Perl on Windows ............................................................ 314
2.13.3 Problems Using the Perl DBI/DBD Interface ..................................................... 315
3 Tutorial .................................................................................................................................. 317
3.1 Connecting to and Disconnecting from the Server ......................................................... 317
3.2 Entering Queries ......................................................................................................... 318
3.3 Creating and Using a Database ................................................................................... 321
3.3.1 Creating and Selecting a Database ................................................................... 322
3.3.2 Creating a Table .............................................................................................. 323
3.3.3 Loading Data into a Table ................................................................................ 324
3.3.4 Retrieving Information from a Table ................................................................... 325
3.4 Getting Information About Databases and Tables ......................................................... 338
3.5 Using mysql in Batch Mode ......................................................................................... 339
3.6 Examples of Common Queries .................................................................................... 340
3.6.1 The Maximum Value for a Column .................................................................... 341
3.6.2 The Row Holding the Maximum of a Certain Column .......................................... 341
3.6.3 Maximum of Column per Group ........................................................................ 341
3.6.4 The Rows Holding the Group-wise Maximum of a Certain Column ....................... 342
3.6.5 Using User-Defined Variables ........................................................................... 343
3.6.6 Using Foreign Keys .......................................................................................... 343
3.6.7 Searching on Two Keys .................................................................................... 345
iv
MySQL 8.0 Reference Manual
3.6.8 Calculating Visits Per Day ................................................................................. 345
3.6.9 Using AUTO_INCREMENT ............................................................................... 346
3.7 Using MySQL with Apache .......................................................................................... 348
4 MySQL Programs .................................................................................................................. 351
4.1 Overview of MySQL Programs ..................................................................................... 352
4.2 Using MySQL Programs .............................................................................................. 355
4.2.1 Invoking MySQL Programs ............................................................................... 355
4.2.2 Specifying Program Options .............................................................................. 356
4.2.3 Command Options for Connecting to the Server ................................................ 369
4.2.4 Connecting to the MySQL Server Using Command Options ................................ 379
4.2.5 Connecting to the Server Using URI-Like Strings or Key-Value Pairs ................... 382
4.2.6 Connecting to the Server Using DNS SRV Records ........................................... 389
4.2.7 Connection Transport Protocols ........................................................................ 390
4.2.8 Connection Compression Control ...................................................................... 391
4.2.9 Setting Environment Variables .......................................................................... 395
4.3 Server and Server-Startup Programs ........................................................................... 396
4.3.1 mysqld — The MySQL Server .......................................................................... 396
4.3.2 mysqld_safe — MySQL Server Startup Script .................................................... 397
4.3.3 mysql.server — MySQL Server Startup Script .................................................... 403
4.3.4 mysqld_multi — Manage Multiple MySQL Servers .............................................. 405
4.4 Installation-Related Programs ...................................................................................... 408
4.4.1 comp_err — Compile MySQL Error Message File .............................................. 408
4.4.2 mysql_secure_installation — Improve MySQL Installation Security ...................... 410
4.4.3 mysql_ssl_rsa_setup — Create SSL/RSA Files .................................................. 414
4.4.4 mysql_tzinfo_to_sql — Load the Time Zone Tables ............................................ 416
4.4.5 mysql_upgrade — Check and Upgrade MySQL Tables ...................................... 417
4.5 Client Programs .......................................................................................................... 426
4.5.1 mysql — The MySQL Command-Line Client ...................................................... 426
4.5.2 mysqladmin — A MySQL Server Administration Program ................................... 461
4.5.3 mysqlcheck — A Table Maintenance Program ................................................... 474
4.5.4 mysqldump — A Database Backup Program ..................................................... 485
4.5.5 mysqlimport — A Data Import Program ............................................................. 514
4.5.6 mysqlpump — A Database Backup Program ..................................................... 525
4.5.7 mysqlshow — Display Database, Table, and Column Information ........................ 545
4.5.8 mysqlslap — A Load Emulation Client ............................................................... 553
4.6 Administrative and Utility Programs .............................................................................. 565
4.6.1 ibd2sdi — InnoDB Tablespace SDI Extraction Utility ........................................... 565
4.6.2 innochecksum — Offline InnoDB File Checksum Utility ....................................... 568
4.6.3 myisam_ftdump — Display Full-Text Index information ....................................... 574
4.6.4 myisamchk — MyISAM Table-Maintenance Utility .............................................. 575
4.6.5 myisamlog — Display MyISAM Log File Contents .............................................. 591
4.6.6 myisampack — Generate Compressed, Read-Only MyISAM Tables .................... 592
4.6.7 mysql_config_editor — MySQL Configuration Utility ........................................... 598
4.6.8 mysql_migrate_keyring — Keyring Key Migration Utility ...................................... 604
4.6.9 mysqlbinlog — Utility for Processing Binary Log Files ......................................... 610
4.6.10 mysqldumpslow — Summarize Slow Query Log Files ....................................... 636
4.7 Program Development Utilities ..................................................................................... 638
4.7.1 mysql_config — Display Options for Compiling Clients ....................................... 638
4.7.2 my_print_defaults — Display Options from Option Files ...................................... 640
4.8 Miscellaneous Programs .............................................................................................. 641
4.8.1 lz4_decompress — Decompress mysqlpump LZ4-Compressed Output ................ 641
4.8.2 perror — Display MySQL Error Message Information .......................................... 641
4.8.3 zlib_decompress — Decompress mysqlpump ZLIB-Compressed Output .............. 642
4.9 Environment Variables ................................................................................................. 642
4.10 Unix Signal Handling in MySQL ................................................................................. 645
5 MySQL Server Administration ................................................................................................. 649
5.1 The MySQL Server ..................................................................................................... 650
5.1.1 Configuring the Server ...................................................................................... 651
v
剩余6205页未读,继续阅读
资源推荐
资源评论
191 浏览量
5星 · 资源好评率100%
186 浏览量
101 浏览量
2022-05-07 上传
5星 · 资源好评率100%
152 浏览量
173 浏览量
2022-03-27 上传
2022-04-09 上传
5星 · 资源好评率100%
108 浏览量
134 浏览量
5星 · 资源好评率100%
157 浏览量
资源评论
HuangJiaxinZ
- 粉丝: 30
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 搜索引擎lucen的相关介绍 从事搜索行业程序研发、人工智能、存储等技术人员和企业
- 基于opencv-dnn和一些超过330 FPS的npu
- 房屋租赁管理系统 java项目ssm框架开发,全套视频教程
- MATLAB代码:计及电转气协同的含碳捕集与垃圾焚烧电厂优化调度 关键词:碳捕集 电厂 需求响应 优化调度 电转气协同调度 参考文档:《计及电转气协同的含碳捕集与垃圾焚烧电厂优化调度》完全复现
- 关键词:微网 优化调度 深度强化学习 A3C 需求响应 编程语言:python平台 主题:基于改进A3C算法的微网优化调度与需求响应管理 内容简介: 代码主要做的是基于深度强化学习的微网
- web网页,三次平时作业+大作业+Acwing笔记
- cruise软件模型,混动仿真模型,IMMD架构混联混动仿真模型,Cruise混动仿真模型,混联混动汽车动力性经济性仿真 关于模型 1.本模型是基于IMMD架构搭载的混联混动仿真模型,关于IMMD架
- C#上位机开发源码 上位机项目源代码 采用基于RS485通讯总线的ModbusRtu协议,支持用户权限管理、sqlite数据库、实时曲线、历史曲线、历史报表、导出Excel、主界面布局可调带记忆等功能
- 基于plc的污水处理,组态王动画仿真,带PLC源代码,组态王源代码,图纸,IO地址分配
- Rhino(犀牛)插件ladybug-tools-1-8-0
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功