$
ln -symbolic
/mysql-5.0.22
/mysqland refer to the directory as
/mysql
Again, using a symbolic link in this way allows you to configure and use different versions of MySQL on a system, with the symbolic link pointing to the directory containing the version you want to use.
Note that the configuration process assumes default values for anything that you don’t specify. For example, you can explicitly
set the data directory, TCP port, and socket file (more about these later
./configure \ --prefix=/home/adam/mysql \ --localstatedir=/home/adam/mysql/data \ --with-unix-socket-path=/home/adam/mysql/mysql.sock \ --with-tcp-port=53306However, we recommend you compile only with the prefix directory specified. You can then modify other settings bypassing options
to MySQL from the command line;
we explain how to do this in Configuring a local server later in this chapter. Even better, you can specify the options in an options file as described in Chapter 11.
Installing MySQL, Apache, PHP, and Perl on Linux Using DistributionPackagesAlmost all distributions include packaged versions of the main pieces of software that you
need to follow this book MySQL, the Apache web server, and support for the PHP
and Perl scripting languages.
In this section, we’ll explain how to install these if they’re not already present on your Linux system.
The three main distributions we’ll cover are Red Hat, Mandriva,
and Debian, as well as distributions associated with these, including Fedora, Mandrake, Ubuntu, and
Knoppix.
These are very widely used, and are well supported by the distributors and by the general Linux community. Configured correctly, they can automatically fetch and install the required software from the installation media or from the Internet.
Most distributions have an easy-to-use graphical package-management tool that you can use, but the command-line tools
are generally more reliable, and we feel you’ll better understand how things fit together by carrying out the installation from the command line.
Share with your friends: