没有合适的资源?快使用搜索试试~ 我知道了~
首页MySql中文手册PDF终极完美版
资源详情
资源评论
资源推荐

MySQL 5.1 参考手册
由卢生从 html 修改转换成 pdf 文档 http://hi.baidu.com/kerving2013 年 5 月 1 日。
这是 MySQL 参考手册的翻译版本,关于 MySQL 参考手册,请访问 dev.mysql.com。 原始参考手册为英文版,与英文版参考手册相比,本翻译版
可能不是最新的。
This translation was done by MySQL partner GreatLinux, Beijing, People's Republic of China. GreatLinux Inc. 北京万里开源软件有限公司在全国范围提
供 MySQL 产品相关的商务及 技术方面的咨询与支持服务。垂询请致电:8610-65694500,或发送邮件至:sales@greatlinux.com.
Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.
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.
如果将本软件或相关文档交付给美国政府,或者交付给以美国政府名义获得许可证的任 何机构,必须符合以下规定:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are
"commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the
applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19,
Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
This software 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 which may create a risk of personal injury. If you use this software in dangerous applications, then you shall
be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its
affiliates disclaim any liability for any damages caused by use of this software in dangerous applications.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. MySQL is a trademark of Oracle Corporation and/or its affiliates, and shall not be
used without Oracle's express written authorization. Other names may be trademarks of their respective owners.
This software and documentation may provide access to or information on 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. 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.
This document in any form, software or printed matter, contains proprietary information that is the exclusive property of Oracle. Your access to and use of
this material is subject to the terms and conditions of your Oracle Software License and Service Agreement, which has been executed and with which you
agree to comply. This document and information contained herein may not be disclosed, copied, reproduced, or distributed to anyone outside Oracle without
prior written consent of Oracle or as specifically provided below. This document is not part of your license agreement nor can it be incorporated into any
contractual agreement with Oracle or its subsidiaries or affiliates.
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.
For more information on the terms of this license, for details on how the MySQL documentation is built and produced, or if you are interested in doing a
translation, please visit MySQL Contact & Questions.
For additional licensing information, including licenses for libraries used by MySQL products, see Preface, Notes, Licenses.
If you want 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.
摘要
这是 MySQL 参考手册 它涉及 MySQL 5.1 至 5.1.2-alpha 版本。
文档生成于: 2005-11-15
目录

前言
1. 一般信息
1.1. 关于本手册
1.2. 本手册采用的惯例
1.3. MySQL AB
概述
1.4. MySQL
数据库管理系统概述
1.4.1. MySQL
的历史
1.4.2. MySQL
的的主要特性
1.4.3. MySQL
稳定性
1.4.4. MySQL
表最大能达到多少
1.4.5. 2000
年兼容性
1.5. MaxDB
数据库管理系统概述
1.5.1. 什么是
MaxDB ?
1.5.2. MaxDB
的历史
1.5.3. MaxDB
的特性
1.5.4. 许可和支持
1.5.5. MaxDB
和
MySQL
之间的特性差异
1.5.6. MaxDB
和
MySQL
之间的协同性
1.5.7. 与
MaxDB
有关的链接
1.6. MySQL
发展大事记
1.6.1. MySQL 5.1
的新特性
1.7. MySQL
信息源
1.7.1. MySQL
邮件列表
1.7.2. IRC (在线聊天系统)上的
MySQL
社区支持
1.7.3. MySQL
论坛上的
MySQL
社区支持
1.8. MySQL
标准的兼容性
1.8.1. MySQL
遵从的标准是什么
1.8.2. 选择
SQL
模式
1.8.3. 在
ANSI
模式下运行
MySQL
1.8.4. MySQL
对标准
SQL
的扩展
1.8.5. MySQL
与标准
SQL
的差别
1.8.6. MySQL
处理约束的方式
2. 安装
MySQL
2.1. 一般安装问题
2.1.1. MySQL
支持的操作系统
2.1.2. 选择要安装的
MySQL
分发版
2.1.3. 怎样获得
MySQL
2.1.4. 通过
MD5
校验和或
GnuPG
验证软件包的完整性
2.1.5. 安装布局
2.2. 使用二进制分发版的标准
MySQL
安装
2.3. 在
Windows
上安装
MySQL
2.3.1. Windows
系统要求
2.3.2. 选择安装软件包
2.3.3. 用自动安装器安装
MySQL
2.3.4. 使用
MySQL
安装向导
2.3.5. 使用配置向导
2.3.6. 通过非安装
Zip
文件安装
MySQL
2.3.7. 提取安装档案文件
2.3.8. 创建选项文件
2.3.9. 选择
MySQL
服务器类型
2.3.10. 首次启动服务器
2.3.11. 从
Windows
命令行启动
MySQL
2.3.12. 以
Windows
服务方式启动
MySQL
2.3.13. 测试
MySQL
安装
2.3.14. 在
Windows
环境下对
MySQL
安装的故障诊断与排除
2.3.15. 在
Windows
下升级
MySQL
2.3.16. Windows
版
MySQL
同
Unix
版
MySQL
对比

2.4. 在
Linux
下安装
MySQL
2.5. 在
Mac OS X
中安装
MySQL
2.6. 在
NetWare
中安装
MySQL
2.7. 在其它类
Unix
系统中安装
MySQL
2.8. 使用源码分发版安装
MySQL
2.8.1. 源码安装概述
2.8.2. 典型配置选项
2.8.3. 从开发源码树安装
2.8.4. 处理
MySQL
编译问题
2.8.5. MIT-pthreads
注意事项
2.8.6. 在
Windows
下从源码安装
MySQL
2.8.7. 在
Windows
下编译
MySQL
客户端
2.9. 安装后的设置和测试
2.9.1. Windows
下安装后的过程
2.9.2. Unix
下安装后的过程
2.9.3. 使初始
MySQL
账户安全
2.10. 升级
MySQL
2.10.1. 从
5.0
版升级
2.10.2. 升级授权表
2.10.3. 将
MySQL
数据库拷贝到另一台机器
2.11. 降级
MySQL
2.12. 具体操作系统相关的注意事项
2.12.1. Linux
注意事项
2.12.2. Mac OS X
注意事项
2.12.3. Solaris
注意事项
2.12.4. BSD
注意事项
2.12.5. 其它
Unix
注意事项
2.12.6. OS/2
注意事项
2.13. Perl
安装注意事项
2.13.1. 在
Unix
中安装
Perl
2.13.2. 在
Windows
下安装
ActiveState Perl
2.13.3. 使用
Perl DBI/DBD
接口的问题
3. 教程
3.1. 连接与断开服务器
3.2. 输入查询
3.3. 创建并使用数据库
3.3.1. 创建并选择数据库
3.3.2. 创建表
3.3.3. 将数据装入表中
3.3.4. 从表检索信息
3.4. 获得数据库和表的信息
3.5. 在批处理模式 下使用
my sql
3.6. 常用查询的例子
3.6.1. 列的最大值
3.6.2. 拥有某个列的最大值的行
3.6.3. 列的最大值:按组
3.6.4. 拥有某个字段的组间最大值的行
3.6.5. 使用用户变量
3.6.6. 使用外键
3.6.7. 根据两个键搜索
3.6.8. 根据天计算访问量
3.6.9. 使用
AUTO_INCREMENT
3.7. 孪生项目的查询
3.7.1. 查找所有未分发的孪生项
3.7.2. 显示孪生对状态的表
3.8. 与
Apache
一起使用
MySQL
4. MySQL
程序概述

4.1. MySQL
程序概述
4.2. 调用
MySQL
程序
4.3. 指定程序选项
4.3.1. 在命令行上使用选项
4.3.2. 使用选项文件
4.3.3. 用环境变量指定选项
4.3.4. 使用选项设置程序变量
5. 数据库管理
5.1. MySQL
服务器和服务器启动脚本
5.1.1. 服务器端脚本和实用工具概述
5.1.2. mysq ld-max
扩展
My SQL
服务器
5.1.3. mysqld_safe : MySQL
服务器启动脚本
5.1.4. mysql.server : MySQL
服务器启动脚本
5.1.5. mysqld_multi :管理多个
MySQL
服务器的程序
5.2. mysqlmanager : MySQL
实例管理器
5.2.1. 用
MySQL
实例管理器启动
MySQL
服务器
5.2.2. 连接到
MySQL
实例管理器并创建用户账户
5.2.3. MySQL
实例管理器命令行选项
5.2.4. MySQL
实例管理器配置文件
5.2.5. MySQL
实例管理器识别的命令
5.3. mysqld : MySQL
服务器
5.3.1. mysqld
命令行选项
5.3.2. SQL
服务器模式
5.3.3. 服务器系统变量
5.3.4. 服务器状态变量
5.4. mysql_fix_privilege_tables :升级
MySQL
系统表
5.5. MySQL
服务器关机进程
5.6. 一般安全问题
5.6.1. 通用安全指南
5.6.2. 使
MySQL
在攻击者面前保持安全
5.6.3. Mysqld
安全相关启动选项
5.6.4. LOAD DATA LOCAL
安全问题
5.7. MySQL
访问权限系统
5.7.1. 权限系统的作用
5.7.2. 权限系统工作原理
5.7.3. MySQL
提供的权限
5.7.4. 与
MySQL
服务器连接
5.7.5. 访问控制 , 阶段
1 :连接核实
5.7.6. 访问控制 , 阶段
2 :请求核实
5.7.7. 权限更改何时生效
5.7.8. 拒绝访问错误的原因
5.7.9. MySQL 4.1
中的密码哈希处理
5.8. MySQL
用户账户管理
5.8.1. MySQL
用户名和密码
5.8.2. 向
MySQL
增加新用户账户
5.8.3. 从
MySQL
删除用户账户
5.8.4. 限制账户资源
5.8.5. 设置账户密码
5.8.6. 使你的密码安全
5.8.7. 使用安全连接
5.9. 备份与恢复
5.9.1. 数据库备份
5.9.2. 示例用备份与恢复策略
5.9.3. 自动恢复
5.9.4. 表维护和崩溃恢复
5.9.5. myisamchk : MyISAM
表维护实用工具
5.9.6. 建立表维护计划

5.9.7. 获取关于表的信息
5.10. MySQL
本地化和国际应用
5.10.1. 数据和排序用字符集
5.10.2. 设置错误消息语言
5.10.3. 添加新的字符集
5.10.4. 字符定义数组
5.10.5. 字符串比较支持
5.10.6. 多字节字符支持
5.10.7. 字符集问题
5.10.8. MySQL
服务器时区支持
5.11. MySQL
日志文件
5.11.1. 错误日志
5.11.2. 通用查询日志
5.11.3. 二进制日志
5.11.4. 慢速查询日志
5.11.5. 日志文件维护
5.12. 在同一台机器上运行多个
MySQL
服务器
5.12.1. 在
Windows
下运行多个服务器
5.12.2. 在
Unix
中运行多个服务器
5.12.3. 在多服务器环境中使用客户端程序
5.13. MySQL
查询高速缓冲
5.13.1. 查询高速缓冲如何工作
5.13.2. 查询高速缓冲
SELECT
选项
5.13.3. 查询高速缓冲配置
5.13.4. 查询高速缓冲状态和维护
6. MySQL
中的复制
6.1. 复制介绍
6.2. 复制实施概述
6.3. 复制实施细节
6.3.1. 复制主线程状态
6.3.2. 复制从
I/O
线程状态
6.3.3. 复制从
SQL
线程状态
6.3.4. 复制传递和状态文件
6.4. 如何设置复制
6.5. 不同
MySQL
版本之间的复制兼容性
6.6. 升级复制设置
6.6.1. 将复制升级到
5.0
版
6.7. 复制特性和已知问题
6.8. 复制启动选项
6.9. 复制
FAQ
6.10. 复制故障诊断与排除
6.11. 通报复制缺陷
6.12. 多服务器复制中的
Auto-Increment
7. 优化
7.1. 优化概述
7.1.1. MySQL
设计局限与折衷
7.1.2. 为可移植性设计应用程序
7.1.3. 我们已将
MySQL
用在何处?
7.1.4. MySQL
基准套件
7.1.5. 使用自己的基准
7.2. 优化
SELECT
语句和其它查询
7.2.1. EXPLAIN
语法(获取
SELECT
相关信息)
7.2.2. 估计查询性能
7.2.3. SELECT
查询的速度
7.2.4. MySQL
怎样优化
WHERE
子句
7.2.5. 范围优化
7.2.6. 索引合并优化
剩余1294页未读,继续阅读













安全验证
文档复制为VIP权益,开通VIP直接复制

评论1