
Let’s begin! Become root by using su.
$ su
and enter the user root’s password. Change to the directory that you have stored the source
files in, for example
# cd /tmp/download/
Extract the files using the following command:
# gunzip -c mysql-3.22.xx.tar.gz | tar xvf -
Change to the new directory. This was created by tar during the extraction, like this:
# cd mysql-3.22.xx
Now you can start configuring the MySQL server. You can specify many options with the
configure command. Type configure --help to see all options. The configure script will
check for your compiler and a number of other things. If you have any errors, you can check
the config.cache file to see them.
# ./configure --prefix=/usr/local/mysql
After you are done with configure, you can make the actual binaries by executing the follow-
ing line (this will take a while):
# make
Now you are ready to install all the binaries. Run the following lines to install the binaries to
the directory you specified with the configure --prefix option.
# make install
Now it’s time to create the mysql tables, which are used to define the permissions. Make sure
you replace new-password with something of your choice; otherwise, new-password will be
your root password.
# scripts/mysql_install_db
# cd /usr/local/mysql/bin
# ./safe_mysqld &
# ./mysqladmin -u root password ‘new-password’
You can verify that MySQL is working by running some simple tests. The output should be
similar to what is shown here:
# /usr/local/mysql/bin/mysqlshow -p
Installing PHP 4 and MySQL
A
PPENDIX A
A
INSTALLING PHP 4
AND MYSQL
785
38 7842 app a 3/6/01 3:40 PM Page 785
Comentarios a estos manuales