MySql 中文参考指南

Chapter 2 Installing MySQL

目录

Table of Contents

本章介绍如何获取和安装 MySQL。下面是对该程序的总结,后面几节提供了详细信息。如果你计划将 MySQL 的现有版本升级到新版本,而不是首次安装 MySQL,有关升级程序和在升级之前你应该考虑的问题的信息,请参阅 Chapter 3, Upgrading MySQL

This chapter describes how to obtain and install MySQL. A summary of the procedure follows and later sections provide the details. If you plan to upgrade an existing version of MySQL to a newer version rather than install MySQL for the first time, see Chapter 3, Upgrading MySQL, for information about upgrade procedures and about issues that you should consider before upgrading.

如果你有兴趣从其他数据库系统迁移到 MySQL,请参见 Section A.8, “MySQL 9.0 FAQ: Migration”,其中包含了涉及迁移问题的常见问题的答案。

If you are interested in migrating to MySQL from another database system, see Section A.8, “MySQL 9.0 FAQ: Migration”, which contains answers to some common questions concerning migration issues.

MySQL 安装通常遵循此处概述的步骤:

Installation of MySQL generally follows the steps outlined here:

不同平台和环境上安装 MySQL 的说明按平台具体提供:

Instructions for installing MySQL on different platforms and environments is available on a platform by platform basis:

  1. Unix, Linux

有关使用通用二进制(例如 .tar.gz 包)在大多数 Linux 和 Unix 平台上安装 MySQL 的说明,请参阅 Section 2.2, “Installing MySQL on Unix/Linux Using Generic Binaries”

For instructions on installing MySQL on most Linux and Unix platforms using a generic binary (for example, a .tar.gz package), see Section 2.2, “Installing MySQL on Unix/Linux Using Generic Binaries”.

有关从源代码版本或源代码存储库完全构建 MySQL 的信息,请参阅 Section 2.8, “Installing MySQL from Source”

For information on building MySQL entirely from the source code distributions or the source code repositories, see Section 2.8, “Installing MySQL from Source”

有关在安装、配置和从源代码构建方面针对特定平台的帮助,请参阅相应的平台部分:

For specific platform help on installation, configuration, and building from source see the corresponding platform section:

Linux,包括特定分发方法的说明,请参阅 Section 2.5, “Installing MySQL on Linux”

Linux, including notes on distribution specific methods, see Section 2.5, “Installing MySQL on Linux”.

  1. Linux, including notes on distribution specific methods, see Section 2.5, “Installing MySQL on Linux”.

  2. IBM AIX, see Section 2.7, “Installing MySQL on Solaris”.

  3. Microsoft Windows

有关使用 MSI 安装程序或压缩二进制文件在 Microsoft Windows 上安装 MySQL 的说明,请参阅 Section 2.3, “Installing MySQL on Microsoft Windows”

For instructions on installing MySQL on Microsoft Windows, using either the MSI installer or Zipped binary, see Section 2.3, “Installing MySQL on Microsoft Windows”.

有关从源代码构建 MySQL 的详细信息和说明,请参阅 Section 2.8, “Installing MySQL from Source”

For details and instructions on building MySQL from source code, see Section 2.8, “Installing MySQL from Source”.

  1. macOS

有关在 macOS 上安装的信息,包括使用二进制包和原生 PKG 格式,请参阅 Section 2.4, “Installing MySQL on macOS”

For installation on macOS, including using both the binary package and native PKG formats, see Section 2.4, “Installing MySQL on macOS”.

有关利用 macOS Launch Daemon 自动启动和停止 MySQL 的信息,请参阅 Section 2.4.3, “Installing and Using the MySQL Launch Daemon”

For information on making use of an macOS Launch Daemon to automatically start and stop MySQL, see Section 2.4.3, “Installing and Using the MySQL Launch Daemon”.

有关 MySQL 偏好窗格的信息,请参阅 Section 2.4.4, “Installing and Using the MySQL Preference Pane”

For information on the MySQL Preference Pane, see Section 2.4.4, “Installing and Using the MySQL Preference Pane”.