没有合适的资源?快使用搜索试试~ 我知道了~
MySQL-5.6 参考文档
5星 · 超过95%的资源 需积分: 10 19 下载量 167 浏览量
2016-01-25
16:59:52
上传
评论
收藏 30.03MB PDF 举报
温馨提示
试读
3958页
MySQL-5.6-refenrence-manual-en为mysql英文版参考文档,也是我翻译所用的版本,如果想看我的翻译的中文内容,可进入我的个人博客查看.
资源推荐
资源详情
资源评论
MySQL 5.6 Reference Manual
Including MySQL Cluster NDB 7.3-7.4 Reference Guide
Abstract
This is the MySQL™ Reference Manual. It documents MySQL 5.6 through 5.6.29, as well as MySQL Cluster
releases based on versions 7.3 and 7.4 of NDB through 5.6.27-ndb-7.3.12 and 5.6.27-ndb-7.4.9, respectively.
MySQL 5.6 features. This manual describes features that are not included in every edition of MySQL 5.6; such
features may not be included in the edition of MySQL 5.6 licensed to you. If you have any questions about the
features included in your edition of MySQL 5.6, refer to your MySQL 5.6 license agreement or contact your Oracle
sales representative.
For notes detailing the changes in each release, see the MySQL 5.6 Release Notes.
For legal information, see the Legal Notices.
For help with using MySQL, please visit either the MySQL Forums or MySQL Mailing Lists, where you can discuss
your issues with other MySQL users.
For additional documentation on MySQL products, including translations of the documentation into other
languages, and downloadable versions in variety of formats, including HTML and PDF formats, see the MySQL
Documentation Library.
Document generated on: 2016-01-07 (revision: 46027)
iii
Table of Contents
Preface and Legal Notices ........................................................................................................ xxiii
1 General Information ................................................................................................................... 1
1.1 About This Manual ......................................................................................................... 2
1.2 Typographical and Syntax Conventions ........................................................................... 2
1.3 Overview of the MySQL Database Management System .................................................. 4
1.3.1 What is MySQL? ................................................................................................. 4
1.3.2 The Main Features of MySQL .............................................................................. 6
1.3.3 History of MySQL ................................................................................................ 8
1.4 What Is New in MySQL 5.6 ............................................................................................ 9
1.5 MySQL Information Sources ......................................................................................... 20
1.5.1 MySQL Mailing Lists .......................................................................................... 20
1.5.2 MySQL Community Support at the MySQL Forums .............................................. 23
1.5.3 MySQL Community Support on Internet Relay Chat (IRC) .................................... 23
1.5.4 MySQL Enterprise ............................................................................................. 23
1.6 How to Report Bugs or Problems .................................................................................. 24
1.7 MySQL Standards Compliance ...................................................................................... 28
1.7.1 MySQL Extensions to Standard SQL .................................................................. 29
1.7.2 MySQL Differences from Standard SQL .............................................................. 32
1.7.3 How MySQL Deals with Constraints .................................................................... 34
1.8 Credits ......................................................................................................................... 37
1.8.1 Contributors to MySQL ....................................................................................... 37
1.8.2 Documenters and translators .............................................................................. 41
1.8.3 Packages that support MySQL ........................................................................... 43
1.8.4 Tools that were used to create MySQL ............................................................... 43
1.8.5 Supporters of MySQL ........................................................................................ 44
2 Installing and Upgrading MySQL .............................................................................................. 45
2.1 General Installation Guidance ....................................................................................... 47
2.1.1 Which MySQL Version and Distribution to Install .................................................. 47
2.1.2 How to Get MySQL ........................................................................................... 49
2.1.3 Verifying Package Integrity Using MD5 Checksums or GnuPG .............................. 49
2.1.4 Installation Layouts ............................................................................................ 57
2.1.5 Compiler-Specific Build Characteristics ............................................................... 57
2.2 Installing MySQL on Unix/Linux Using Generic Binaries .................................................. 57
2.3 Installing MySQL on Microsoft Windows ........................................................................ 60
2.3.1 MySQL Installation Layout on Microsoft Windows ................................................ 62
2.3.2 Choosing An Installation Package ....................................................................... 63
2.3.3 Installing MySQL on Microsoft Windows Using MySQL Installer ............................ 64
2.3.4 MySQL Notifier .................................................................................................. 91
2.3.5 Installing MySQL on Microsoft Windows Using a noinstall Zip Archive .................. 102
2.3.6 Troubleshooting a Microsoft Windows MySQL Server Installation ........................ 110
2.3.7 Windows Postinstallation Procedures ................................................................ 111
2.3.8 Upgrading MySQL on Windows ........................................................................ 113
2.4 Installing MySQL on OS X .......................................................................................... 114
2.4.1 General Notes on Installing MySQL on OS X ..................................................... 115
2.4.2 Installing MySQL on OS X Using Native Packages ............................................. 116
2.4.3 Installing a MySQL Launch Daemon ................................................................. 120
2.4.4 Installing and Using the MySQL Preference Pane .............................................. 123
2.5 Installing MySQL on Linux .......................................................................................... 127
2.5.1 Installing MySQL on Linux Using the MySQL Yum Repository ............................. 128
2.5.2 Replacing a Third-Party Distribution of MySQL Using the MySQL Yum Repository
................................................................................................................................. 132
2.5.3 Installing MySQL on Linux Using the MySQL APT Repository ............................. 135
2.5.4 Installing MySQL on Linux Using the MySQL SLES Repository ........................... 135
2.5.5 Installing MySQL on Linux Using RPM Packages ............................................... 135
2.5.6 Installing MySQL on Linux Using Debian Packages from Oracle .......................... 140
MySQL 5.6 Reference Manual
iv
2.5.7 Installing MySQL on Linux from the Native Software Repositories ........................ 142
2.5.8 Installing MySQL on Linux with docker .............................................................. 146
2.5.9 Installing MySQL on Linux with juju ................................................................... 146
2.6 Installing MySQL Using Unbreakable Linux Network (ULN) ........................................... 146
2.7 Installing MySQL on Solaris and OpenSolaris ............................................................... 147
2.7.1 Installing MySQL on Solaris Using a Solaris PKG .............................................. 148
2.7.2 Installing MySQL on OpenSolaris Using IPS ...................................................... 148
2.8 Installing MySQL on FreeBSD ..................................................................................... 149
2.9 Installing MySQL from Source ..................................................................................... 150
2.9.1 MySQL Layout for Source Installation ............................................................... 152
2.9.2 Installing MySQL Using a Standard Source Distribution ...................................... 152
2.9.3 Installing MySQL Using a Development Source Tree .......................................... 156
2.9.4 MySQL Source-Configuration Options ............................................................... 158
2.9.5 Dealing with Problems Compiling MySQL .......................................................... 171
2.9.6 MySQL Configuration and Third-Party Tools ...................................................... 172
2.10 Postinstallation Setup and Testing ............................................................................. 172
2.10.1 Initializing the Data Directory .......................................................................... 173
2.10.2 Starting the Server ......................................................................................... 177
2.10.3 Testing the Server ......................................................................................... 179
2.10.4 Securing the Initial MySQL Accounts ............................................................... 181
2.10.5 Starting and Stopping MySQL Automatically .................................................... 185
2.11 Upgrading or Downgrading MySQL ............................................................................ 186
2.11.1 Upgrading MySQL .......................................................................................... 186
2.11.2 Downgrading MySQL ..................................................................................... 198
2.11.3 Checking Whether Tables or Indexes Must Be Rebuilt ...................................... 203
2.11.4 Rebuilding or Repairing Tables or Indexes ....................................................... 204
2.11.5 Copying MySQL Databases to Another Machine .............................................. 206
2.12 Environment Variables .............................................................................................. 207
2.13 Perl Installation Notes ............................................................................................... 208
2.13.1 Installing Perl on Unix .................................................................................... 209
2.13.2 Installing ActiveState Perl on Windows ............................................................ 209
2.13.3 Problems Using the Perl DBI/DBD Interface ..................................................... 210
3 Tutorial ................................................................................................................................. 213
3.1 Connecting to and Disconnecting from the Server ........................................................ 213
3.2 Entering Queries ......................................................................................................... 214
3.3 Creating and Using a Database ................................................................................... 217
3.3.1 Creating and Selecting a Database ................................................................... 218
3.3.2 Creating a Table .............................................................................................. 219
3.3.3 Loading Data into a Table ................................................................................ 220
3.3.4 Retrieving Information from a Table .................................................................. 221
3.4 Getting Information About Databases and Tables ......................................................... 234
3.5 Using mysql in Batch Mode ........................................................................................ 235
3.6 Examples of Common Queries .................................................................................... 237
3.6.1 The Maximum Value for a Column .................................................................... 237
3.6.2 The Row Holding the Maximum of a Certain Column .......................................... 237
3.6.3 Maximum of Column per Group ........................................................................ 238
3.6.4 The Rows Holding the Group-wise Maximum of a Certain Column ....................... 238
3.6.5 Using User-Defined Variables ........................................................................... 239
3.6.6 Using Foreign Keys ......................................................................................... 239
3.6.7 Searching on Two Keys ................................................................................... 241
3.6.8 Calculating Visits Per Day ................................................................................ 241
3.6.9 Using AUTO_INCREMENT ............................................................................... 242
3.7 Using MySQL with Apache .......................................................................................... 244
4 MySQL Programs .................................................................................................................. 245
4.1 Overview of MySQL Programs .................................................................................... 246
4.2 Using MySQL Programs ............................................................................................. 250
4.2.1 Invoking MySQL Programs ............................................................................... 250
4.2.2 Connecting to the MySQL Server ...................................................................... 251
MySQL 5.6 Reference Manual
v
4.2.3 Specifying Program Options ............................................................................. 254
4.2.4 Using Options on the Command Line ................................................................ 255
4.2.5 Program Option Modifiers ................................................................................. 257
4.2.6 Using Option Files ........................................................................................... 257
4.2.7 Command-Line Options that Affect Option-File Handling ..................................... 262
4.2.8 Using Options to Set Program Variables ........................................................... 263
4.2.9 Option Defaults, Options Expecting Values, and the = Sign ................................. 264
4.2.10 Setting Environment Variables ........................................................................ 267
4.3 MySQL Server and Server-Startup Programs ............................................................... 268
4.3.1 mysqld — The MySQL Server ......................................................................... 268
4.3.2 mysqld_safe — MySQL Server Startup Script ................................................. 269
4.3.3 mysql.server — MySQL Server Startup Script ............................................... 273
4.3.4 mysqld_multi — Manage Multiple MySQL Servers ......................................... 275
4.4 MySQL Installation-Related Programs .......................................................................... 279
4.4.1 comp_err — Compile MySQL Error Message File ............................................ 279
4.4.2 mysqlbug — Generate Bug Report .................................................................. 280
4.4.3 mysql_install_db — Initialize MySQL Data Directory .................................... 280
4.4.4 mysql_plugin — Configure MySQL Server Plugins ......................................... 284
4.4.5 mysql_secure_installation — Improve MySQL Installation Security ........... 286
4.4.6 mysql_tzinfo_to_sql — Load the Time Zone Tables ................................... 286
4.4.7 mysql_upgrade — Check and Upgrade MySQL Tables ................................... 287
4.5 MySQL Client Programs ............................................................................................. 293
4.5.1 mysql — The MySQL Command-Line Tool ....................................................... 293
4.5.2 mysqladmin — Client for Administering a MySQL Server .................................. 316
4.5.3 mysqlcheck — A Table Maintenance Program ................................................ 323
4.5.4 mysqldump — A Database Backup Program .................................................... 331
4.5.5 mysqlimport — A Data Import Program ......................................................... 351
4.5.6 mysqlshow — Display Database, Table, and Column Information ....................... 357
4.5.7 mysqlslap — Load Emulation Client ............................................................... 361
4.6 MySQL Administrative and Utility Programs .................................................................. 369
4.6.1 innochecksum — Offline InnoDB File Checksum Utility .................................... 369
4.6.2 myisam_ftdump — Display Full-Text Index information ..................................... 370
4.6.3 myisamchk — MyISAM Table-Maintenance Utility ............................................. 371
4.6.4 myisamlog — Display MyISAM Log File Contents ............................................ 387
4.6.5 myisampack — Generate Compressed, Read-Only MyISAM Tables ................... 388
4.6.6 mysql_config_editor — MySQL Configuration Utility ................................... 394
4.6.7 mysqlaccess — Client for Checking Access Privileges ..................................... 400
4.6.8 mysqlbinlog — Utility for Processing Binary Log Files ..................................... 403
4.6.9 mysqldumpslow — Summarize Slow Query Log Files ...................................... 422
4.6.10 mysqlhotcopy — A Database Backup Program ............................................. 424
4.6.11 mysql_convert_table_format — Convert Tables to Use a Given Storage
Engine ..................................................................................................................... 427
4.6.12 mysql_find_rows — Extract SQL Statements from Files ............................... 428
4.6.13 mysql_fix_extensions — Normalize Table File Name Extensions ............... 429
4.6.14 mysql_setpermission — Interactively Set Permissions in Grant Tables ........ 429
4.6.15 mysql_waitpid — Kill Process and Wait for Its Termination ........................... 430
4.6.16 mysql_zap — Kill Processes That Match a Pattern ......................................... 430
4.7 MySQL Program Development Utilities ........................................................................ 431
4.7.1 msql2mysql — Convert mSQL Programs for Use with MySQL .......................... 431
4.7.2 mysql_config — Display Options for Compiling Clients ................................... 432
4.7.3 my_print_defaults — Display Options from Option Files .............................. 433
4.7.4 resolve_stack_dump — Resolve Numeric Stack Trace Dump to Symbols ........ 434
4.8 Miscellaneous Programs ............................................................................................. 435
4.8.1 perror — Explain Error Codes ....................................................................... 435
4.8.2 replace — A String-Replacement Utility .......................................................... 436
4.8.3 resolveip — Resolve Host name to IP Address or Vice Versa ......................... 436
5 MySQL Server Administration ................................................................................................ 439
5.1 The MySQL Server ..................................................................................................... 439
剩余3957页未读,继续阅读
资源评论
- zhoushiguang2016-08-06谢谢楼主分享
- lzh01102017-09-03谢谢楼主分享
- 蓝色天银2018-07-11谢谢分享,分有点高
Deen12520
- 粉丝: 154
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功