	     Installation instructions for MySQL binary release

Download the distribution from one of the WWW sites. You will end up
with a file called: mysql-version-OS.tgz

Pick a directory to put MySQL in: In the following I'll use
/usr/local/mysql as install directory and MySQL version VERSION
(something like 3.20.9) for SunOS5 (solaris) as an example.

All of the following instructions assume you have permission in
/usr/local.

Use the following commands to create the directory and unpack the
distribution:

  cd /usr/local
  zcat /<where ever you put it>/mysql-3.20.0-SunOS5.tgz | tar xvf -
  ln -s mysql-VERSION mysql

In the Solaris binary versions the grant tables are already created, for
others distributions you should edit the scripts/mysql_install_db script to
have the privileges you want and run it. The default privileges is that
anybody may create/use the databases named 'test' or starting with "test_".
Root can do anything.

If you want to recreate the privilege tables remove all the *.ISM and
*.ISD files in the mysql database directory, edit the scripts/mysql_install_db
script to have the privileges you want and run it.

The mysql_install_db script also start the mysqld demon.

More information can be found in the FAQ.

> scripts/mysql_install_db     # Create privilige tables if they don't exist

Normal start the MySQL server demon (not needed the first time):

> bin/safe_mysqld --log &

Alternatively you can remove all the *.ISM and *.ISD files in the
mysql database directory, edit the mysql_install_db script to have
the privileges you want and run it. The script also start the mysqld demon.

> scripts/mysql_install_db     # If you want to recreate privileges

Start the MySQL server demon:

  bin/safe_mysqld --log &

- To get perl work do the following:

  cd mysqlperl
  perl Makefile.PL
  make
  make install

You should start the server with the safe_mysqld script.
safe_mysqld expects one of two conditions to be true: either you're executing
the script from the base mysql installation directory (for example
/usr/local/mysql) or the server should resides in /my/.
To get it to run correctly, you should cd to /usr/local/mysql and then execute
safe_mysqld or modify the script so that it expected the base mysql directory
to be /usr/local/mysql rather than the default /my/.

By executing

  bin/mysqld --help

you will get the options for mysqld (and safe_mysqld) and the current paths.
Normally you only should need to change the --basedir=path. You can test the
path switches by executing:

  bin/mysqld --basedir=/usr/local --help


If you would have to use mysqlaccess and have the mysql distribution in some
nonstandard place you have to change the path to mysql in mysqlaccess.
bin/mysqlaccess about line 308:

        $MYSQL     = '/usr/local/bin/mysql --batch --unbuffered';

If you don't change the path you will get 'broken pipe' when using mysqlaccess.

------------------------------------------------------------

LINUX notes:

- MySQL needs at least Linux 2.0.
- The binary distribution is staticly compiled with glibc and linuxthreads.
  You don't have to install any libraries to use it.
- The perl distribution needs perl5.003

------------------------------------------------------------

This should normal not be needed. If you wnat to link with other
programs use the source release. To install perl support se above.

The old binary Solaris (Sparc) and Linux distribution has the following
libraries that should be linked with clients:

-lmysql -lmysys -ldbug -lstrings

For new binary distributions and those made with the configure source
release, clients have to be linked with:

-lmysqlclient
