Oracle 5.0 Reference Manual page 131

Table of Contents

Advertisement

Installing MySQL from a Standard Source Distribution
shell>
groupadd mysql
shell>
useradd -g mysql mysql
These commands add the
may differ slightly on different versions of Unix, or they may have different names such
groupadd
as
and addgroup.
adduser
You might want to call the user and group something else instead of mysql. If so, substitute the
appropriate name in the following steps.
2. Perform the following steps as the
3. Pick the directory under which you want to unpack the distribution and change location into it.
4. Obtain a distribution file using the instructions in
5. Unpack the distribution into the current directory.
if it has
option support:
z
shell>
tar zxvf /path/to/mysql-VERSION.tar.gz
This command creates a directory named mysql-VERSION.
If your
does not have
tar
unpack it:
shell>
gunzip < /path/to/mysql-VERSION.tar.gz | tar xvf -
6. Change location into the top-level directory of the unpacked distribution:
shell>
cd mysql-VERSION
Note that currently you must configure and build MySQL from this top-level directory. You cannot
build it in a different directory.
7. Configure the release and compile everything:
shell>
./configure --prefix=/usr/local/mysql
shell>
make
When you run configure, you might want to specify other options. For example, if you need to
debug
or a MySQL client, run
mysqld
then recompile and link your clients with the new client library. See
Other
Systems.
Run
./configure --help
Options", discusses some of the more useful options.
If
fails and you are going to send mail to a MySQL mailing list to ask for assistance,
configure
please include any lines from
the last couple of lines of output from configure. To file a bug report, please use the instructions
in
Section 1.7, "How to Report Bugs or
If the compile fails, see
8. Install the distribution:
shell>
make install
You might need to run this command as root.
If you want to set up an option file, use one of those present in the
template. For example:
group and the
mysql
user, except as noted.
mysql
option support, use
z
configure
for a list of options.
that you think can help solve the problem. Also include
config.log
Problems".
Section 2.17.4, "Dealing with Problems Compiling
111
user. The syntax for
mysql
Section 2.5, "How to Get
can uncompress and unpack the distribution
tar
to unpack the distribution and
gunzip
with the
--with-debug
MySQL Internals: Porting to
Section 2.17.3, "MySQL Source-Configuration
support-files
and
useradd
MySQL".
to
tar
[122]
option, and
MySQL", for help.
directory as a

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents