8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

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

打开官方英文原文 ↗

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

MySQL 8.4 参考手册 / 2 安装 MySQL / 2.7 在 Solaris 上安装 MySQL
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 100%

2.7 在 Solaris 上安装 MySQL2.7 Installing MySQL on Solaris

Note

MySQL 8.4 支持 Solaris 11.4 和更高MySQL 8.4 supports Solaris 11.4 and higher

Solaris 上的 MySQL 有多种不同的格式。MySQL on Solaris is available in a number of different formats.

要获取 tarball 或 PKG 格式的 Solaris 二进制 MySQL 发行版,https://dev.mysql.com/downloads/mysql/8.4.html。To obtain a binary MySQL distribution for Solaris in tarball or PKG format, https://dev.mysql.com/downloads/mysql/8.4.html.

其他注释在 Solaris 上安装和使用 MySQL 时要注意的事项:Additional notes to be aware of when installing and using MySQL on Solaris:

  • 如果要通过 mysql 用户和组使用 MySQL,请使用 groupadd 和 useradd 命令:If you want to use MySQL with the mysql user and group, use the groupadd and useradd commands:

    groupadd mysql
    useradd -g mysql -s /bin/false mysql
    
  • 如果在 Solaris 上使用二进制 tarball 发行版安装 MySQL,因为 Solaris tar 无法处理长文件名,请使用 GNU tar (gtar) 解压发行版。如果您的系统上没有 GNU tar,请使用以下命令安装它:If you install MySQL using a binary tarball distribution on Solaris, because the Solaris tar cannot handle long file names, use GNU tar (gtar) to unpack the distribution. If you do not have GNU tar on your system, install it with the following command:

    pkg install archiver/gnu-tar
    
  • 您应该使用 forcedirectio 选项挂载要存储 InnoDB 文件的任何文件系统。 (默认情况下,在没有此选项的情况下进行安装。)如果不这样做,则会导致在此平台上使用 InnoDB 存储引擎时性能显着下降。You should mount any file systems on which you intend to store InnoDB files with the forcedirectio option. (By default mounting is done without this option.) Failing to do so causes a significant drop in performance when using the InnoDB storage engine on this platform.

  • 如果您希望 MySQL 自动启动,可以将 support-files/mysql.server 复制到 /etc/init.d 并创建一个名为 /etc/rc3.d/S99mysql.server.If you would like MySQL to start automatically, you can copy support-files/mysql.server to /etc/init.d and create a symbolic link to it named /etc/rc3.d/S99mysql.server.

  • 如果太多进程尝试快速连接到 mysqld,您应该在 MySQL 日志中看到以下错误:If too many processes try to connect very rapidly to mysqld, you should see this error in the MySQL log:

    Error in accept: Protocol error
    

    您可以尝试使用 --back_log=50 选项作为解决此问题的方法。You might try starting the server with the --back_log=50 option as a workaround for this.

  • 要在 Solaris 上配置核心文件的生成,您应该使用 coreadm 命令。由于在 setuid() 应用程序上生成核心存在安全隐患,默认情况下,Solaris 不支持 setuid() 程序上的核心文件。但是,您可以使用 coreadm 修改此行为。如果为当前用户启用 setuid() 核心文件,它们将使用模式 600 生成并由超级用户拥有。To configure the generation of core files on Solaris you should use the coreadm command. Because of the security implications of generating a core on a setuid() application, by default, Solaris does not support core files on setuid() programs. However, you can modify this behavior using coreadm. If you enable setuid() core files for the current user, they are generated using mode 600 and are owned by the superuser.