Go to the first, previous, next, last section, table of contents.


Quick installation overview.

Unpack tar archive in a directory. The tar file should be named like mysql-VERSION.tar.gz (VERSION is a number like ). A directory named mysql-VERSION should be created.

zcat mysql-VERSION.tar.gz | tar xvf -
Unpack the distribution into the current directory.
cd mysql-VERSION
Change directory.
./configure
Configure the release. Here you might want to add some options. For a list of configure options use `./configure --help'.
make
Compile everything.
make install
Install everything.
./scripts/mysql_install_db
Set up the MySQL privilige tables. This only needs to be done the first time you install MySQL. You may want to edit this script before running it to get right initial permissions for users to connect to the database. See section Problems running mysql_install_db
'installation_directory'/bin/mysqladmin version
Check to see if the server is running. Unless you added some options to `./configure' 'installation_directory' is `/usr/local'. Here is an example of the output you should get (You will not get this exactly!):
mysqladmin  Ver 6.3 Distrib 3.21.17, for pc-linux-gnu on i686
TCX Datakonsult AB, by Monty

Server version          3.21.17-alpha
Protocol version        10
Connection              Localhost via UNIX socket
TCP port                3306
UNIX socket             /tmp/mysql.sock
Uptime:                 16 sec

Running threads: 1  Questions: 20  Reloads: 2  Open tables: 3

Remember that if you reconfigure MySQL you have to do rm config.cache or make distclean before doing a new configure!

GNU make is always recommended and is sometimes required.


Go to the first, previous, next, last section, table of contents.