Table of Contents
MySQL 8.0 supports Solaris 11.4 and higher
MySQL on Solaris is available in a number of different formats.
For information on installing using the native Solaris PKG format, seeSection 3.1, “Installing MySQL on Solaris Using a Solaris PKG”.
To use a standard
tarbinary installation, use the notes provided inChapter 1,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.
MySQL 5.7 has a dependency on the Oracle Developer Studio Runtime Libraries; but this does not apply to MySQL 8.0.
To obtain a binary MySQL distribution for Solaris in tarball or PKG format,https://dev.mysql.com/downloads/mysql/8.0.html.
Additional notes to be aware of when installing and using MySQL on Solaris:
If you want to use MySQL with the
mysqluser and group, use thegroupadd anduseradd commands:groupadd mysqluseradd -g mysql -s /bin/false mysqlIf you install MySQL using a binary tarball distribution on Solaris, because the Solaristar cannot handle long file names, use GNUtar (gtar) to unpack the distribution. If you do not have GNUtar on your system, install it with the following command:
pkg install archiver/gnu-tarYou should mount any file systems on which you intend to store
InnoDBfiles 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.If you would like MySQL to start automatically, you can copy
support-files/mysql.serverto/etc/init.dand create a symbolic link to it named/etc/rc3.d/S99mysql.server.If too many processes try to connect very rapidly tomysqld, you should see this error in the MySQL log:
Error in accept: Protocol errorYou might try starting the server with the
--back_log=50option as a workaround for this.To configure the generation of core files on Solaris you should use thecoreadm command. Because of the security implications of generating a core on a
setuid()application, by default, Solaris does not support core files onsetuid()programs. However, you can modify this behavior usingcoreadm. If you enablesetuid()core files for the current user, they are generated using mode 600 and are owned by the superuser.