How to compile MySQL from source.

Compiling MySQL from the source code.

1). Download the latest stable MySQL release from http://www.mysql.org/

2). Untar the archive:

$> tar vzxf mysql-{VER}.tar.gz

3). Enter the MySQL directory:

$> cd mysql-{VER}

4). Configure, make and install MySQL - this may take some time.

$> ./configure --prefix=/usr/local/mysql
$> make
$> make install

5). Install the default tables.

$> ./scripts/mysql_install_db

6). Create a new user and group for MySQL.

$> groupadd mysql
$> useradd -g mysql mysql

7). Set the permissions on the MySQL directories.

$> chown -R root /usr/local/mysql
$> chown -R mysql /usr/local/mysql/var
$> chgrp -R mysql /usr/local/mysql

8). Copy the default MySQL configuration script to "/etc/"

$> cp support-files/my-medium.cnf /etc/my.cnf

9). Start MySQL.

$> /usr/local/mysql/bin/safe_mysqld --user=mysql &

10). Optional: Link the MySQL libraries to your lib path (needed for PHP and Perl DBI)

$> ln -s /usr/local/mysql/lib/mysql/* /usr/lib/

Done

Related:
Starting and stopping MySQL automatically
Tripanel tutorials index

Reference:
Eudora's Qpopper Website
Red Hat Linux Website


 
  Visit Noc2 Scripts and Software