MySQL and Solaris  /  Installing MySQL on Solaris

Chapter 3 Installing MySQL on Solaris

To obtain a binary MySQL distribution for Solaris in tarball or PKG format,

If you install MySQL using a binary tarball distribution on Solaris, you may run into trouble even before you get the MySQL distribution unpacked, as the Solaris tar cannot handle long file names. This means that you may see errors when you try to unpack MySQL.

If this occurs, you must use GNU tar (gtar) to unpack the distribution.

You can install MySQL on Solaris using a binary package in PKG format instead of the binary tarball distribution. Before installing using the binary PKG format, you should create the mysql user and group, for example:

groupadd mysql
useradd -g mysql -s /bin/false mysql

Some basic PKG-handling commands follow:

  • To add a package:

    pkgadd -d package_name.pkg
  • To remove a package:

    pkgrm package_name
  • To get a full list of installed packages:

  • To get detailed information for a package:

    pkginfo -l package_name
  • To list the files belonging to a package:

    pkgchk -v package_name
  • To get packaging information for an arbitrary file:

    pkgchk -l -p file_name

For additional information about installing MySQL on Solaris, see Chapter 2, Solaris Notes.

Download this Excerpt
PDF (US Ltr) - 99.7Kb
PDF (A4) - 101.1Kb
EPUB - 42.1Kb
HTML Download (TGZ) - 30.9Kb
HTML Download (Zip) - 37.9Kb
User Comments
Sign Up Login You must be logged in to post a comment.