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.
有关使用本机 Solaris PKG 格式进行安装的信息,请参阅第 2.7.1 节“使用 Solaris PKG 在 Solaris 上安装 MySQL”。For information on installing using the native Solaris PKG format, see Section 2.7.1, “Installing MySQL on Solaris Using a Solaris PKG”.
至使用标准
tar二进制安装,请使用第 2.2 节“使用通用二进制文件在 Unix/Linux 上安装 MySQL” 中提供的注释。请查看本节末尾的注释和提示,了解安装前后可能需要的 Solaris 特定注释。To use a standardtarbinary installation, use the notes provided in Section 2.2, “Installing MySQL on Unix/Linux Using Generic Binaries”. Check the notes and hints at the end of this section for Solaris specific notes that you may need before or after installation.
要获取 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 themysqluser 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 storeInnoDBfiles with theforcedirectiooption. (By default mounting is done without this option.) Failing to do so causes a significant drop in performance when using theInnoDBstorage 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 copysupport-files/mysql.serverto/etc/init.dand 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=50option 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 asetuid()application, by default, Solaris does not support core files onsetuid()programs. However, you can modify this behavior using coreadm. If you enablesetuid()core files for the current user, they are generated using mode 600 and are owned by the superuser.