Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.1Mb
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

MySQL 5.7 Reference Manual  / Installing and Upgrading MySQL  /  Installing MySQL on Solaris

2.7 Installing MySQL on Solaris

Note

MySQL 5.7 supports Solaris 11 (Update 3 and later).

MySQL on Solaris is available in a number of different formats.

Important

The installation packages have a dependency on the Oracle Developer Studio 12.5 Runtime Libraries, which must be installed before you run the MySQL installation package. See the download options for Oracle Developer Studiohere. The installation package enables you to install the runtime libraries only instead of the full Oracle Developer Studio; see instructions inInstalling Only the Runtime Libraries on Oracle Solaris 11.

To obtain a binary MySQL distribution for Solaris in tarball or PKG format,https://dev.mysql.com/downloads/mysql/5.7.html.

Additional notes to be aware of when installing and using MySQL on Solaris:

  • If you want to use MySQL with themysql user and group, use thegroupadd anduseradd commands:

    groupadd mysqluseradd -g mysql -s /bin/false mysql
  • If 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-tar
  • You should mount any file systems on which you intend to storeInnoDB files with theforcedirectio option. (By default mounting is done without this option.) Failing to do so causes a significant drop in performance when using theInnoDB storage engine on this platform.

  • If you would like MySQL to start automatically, you can copysupport-files/mysql.server to/etc/init.d and 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 error

    You might try starting the server with the--back_log=50 option 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 asetuid() 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.