8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 2 安装 MySQL / 2.4 在 macOS 上安装 MySQL / 2.4.4 安装和使用 MySQL 首选项面板
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

2.4.4 安装和使用 MySQL 首选项窗格2.4.4 Installing and Using the MySQL Preference Pane

MySQL 安装包包含一个 MySQL 首选项窗格,可让您在 MySQL 安装启动期间启动、停止和控制自动启动。The MySQL Installation Package includes a MySQL preference pane that enables you to start, stop, and control automated startup during boot of your MySQL installation.

此首选项窗格默认安装,并列在系统的系统首选项下This preference pane is installed by default, and is listed under your system's System Preferences window.

图 2.8 MySQL 首选项窗格:位置Figure 2.8 MySQL Preference Pane: Location

Shows "MySQL" typed into the macOS System Preferences search box, and a highlighted "MySQL" icon in the bottom left.

MySQL 首选项窗格使用与安装 MySQL Server 相同的 DMG 文件进行安装。通常,它与 MySQL 服务器一起安装,但也可以单独安装。The MySQL preference pane is installed with the same DMG file that installs MySQL Server. Typically it is installed with MySQL Server but it can be installed by itself too.

要安装 MySQL 首选项窗格:To install the MySQL preference pane:

  1. 完成安装 MySQL 服务器的过程,如第 2.4.2 节“使用本机在 macOS 上安装 MySQL”中所述。包”。Go through the process of installing the MySQL server, as described in the documentation at Section 2.4.2, “Installing MySQL on macOS Using Native Packages”.

  2. 在安装类型步骤中单击自定义。 “首选项窗格”选项列在那里并默认启用;确保它没有被取消选择。可以选择或取消选择其他选项,例如 MySQL 服务器。Click Customize at the Installation Type step. The "Preference Pane" option is listed there and enabled by default; make sure it is not deselected. The other options, such as MySQL Server, can be selected or deselected.

    图 2.9 MySQL 软件包安装程序向导:自定义Figure 2.9 MySQL Package Installer Wizard: Customize

    Customize shows three package name options: MySQL Server, MySQL Test, Preference Pane, and Launchd Support. All three options are checked.

  3. 完成安装过程。Complete the installation process.

Note

MySQL 首选项窗格仅启动和停止从已安装在默认位置的 MySQL 软件包安装中安装的 MySQL 安装。The MySQL preference pane only starts and stops MySQL installation installed from the MySQL package installation that have been installed in the default location.

安装 MySQL 首选项窗格后,您可以使用此首选项控制 MySQL 服务器实例Once the MySQL preference pane has been installed, you can control your MySQL server instance using this preference pane.

实例页面包含启动或停止 MySQL 的选项,初始化数据库重新创建 data/ 目录。 卸载卸载 MySQL Server 以及可选的 MySQL 首选项面板和 launchd 信息。The Instances page includes an option to start or stop MySQL, and Initialize Database recreates the data/ directory. Uninstall uninstalls MySQL Server and optionally the MySQL preference panel and launchd information.

图 2.10 MySQL 首选项窗格:实例Figure 2.10 MySQL Preference Pane: Instances

The left side shows a list of MySQL instances separated by "Active Instance", "Installed Instances", and "Data Directories" sections. The right side shows a "Stop MySQL Server" button, a check box titled "Start MySQL when your computer starts up", and "Initialize Database" and "Uninstall" buttons.

配置页面显示 MySQL 服务器选项,包括 MySQL 配置文件的路径。The Configuration page shows MySQL Server options including the path to the MySQL configuration file.

图 2.11 MySQL 首选项窗格:配置Figure 2.11 MySQL Preference Pane: Configuration

Content is described in the surrounding text.

The MySQL Preference Pane shows the current status of the MySQL server, showing stopped (in red) if the server is not running and 运行中 (in green) if the server has already been started. The preference pane also shows the current setting for whether the MySQL server has been set to start automatically.The MySQL Preference Pane shows the current status of the MySQL server, showing stopped (in red) if the server is not running and running (in green) if the server has already been started. The preference pane also shows the current setting for whether the MySQL server has been set to start automatically.