Oracle 5.0 Reference Manual page 128

Table of Contents

Advertisement

Create a
mysql
If your system does not already have a user and group for
one. The following commands add the
may differ slightly on different versions of Unix, or they may have different names such as
groupadd
and addgroup.
adduser
shell>
groupadd mysql
shell>
useradd -r -g mysql mysql
You might want to call the user and group something else instead of mysql. If so, substitute the
appropriate name in the preceding commands and in the following steps.
Obtain and Unpack the Distribution
Pick the directory under which you want to unpack the distribution and change location into it. The
example here unpacks the distribution under /usr/local. The instructions, therefore, assume that
you have permission to create files and directories in /usr/local. If that directory is protected, you
must perform the installation as root.
shell>
cd /usr/local
Obtain a distribution file using the instructions in
binary distributions for all platforms are built from the same MySQL source distribution.
Unpack the distribution, which creates the installation directory. Then create a symbolic link to that
directory.
tar
shell>
tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell>
ln -s full-path-to-mysql-VERSION-OS mysql
The
command creates a directory named mysql-VERSION-OS. The
tar
symbolic link to that directory. This enables you to refer more easily to the installation directory as
usr/local/mysql.
If your
tar
it. Replace the preceding
extract the distribution:
shell>
gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
Perform Postinstallation Setup
The remainder of the installation process involves setting up the configuration file, creating the core
databases, and starting the MySQL server. For instructions, see
and
Testing".
Create a
Note
This procedure assumes that you have
system. Alternatively, you can prefix each command using the
(OpenSolaris) command.
pfexec
The procedure does not set up any passwords for MySQL accounts. After
following the procedure, proceed to
Testing".
User and Group
Note
Because the user is required only for ownership purposes, not login purposes,
the
command uses the
useradd
login permissions to your server. Omit this option to permit logins for the user
(or if your
useradd
can uncompress and unpack the distribution if it has
does not have
option support, use
z
command with the following alternative command to uncompress and
tar
User and Group
mysql
root
Section 2.18, "Postinstallation Setup and
mysqld
group and the
mysql
mysql
option to create a user that does not have
-r
does not support the option).
Section 2.5, "How to Get
to unpack the distribution and
gunzip
108
(administrator) access to your
sudo
to run as, you may need to create
user. The syntax for
MySQL". For a given release,
option support:
z
command makes a
ln
Section 2.18, "Postinstallation Setup
(Linux) or
and
useradd
/
to unpack
tar

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents