Learning Mysql


Installing Under Linux | 29



Download 4.24 Mb.
View original pdf
Page35/366
Date04.08.2023
Size4.24 Mb.
#61806
1   ...   31   32   33   34   35   36   37   38   ...   366
Learning MySQL
Installing Under Linux | 29


$ ln -symbolic
/mysql-5.0.22
/mysql

and 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=53306
However, 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 Distribution
Packages
Almost 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.

Download 4.24 Mb.

Share with your friends:
1   ...   31   32   33   34   35   36   37   38   ...   366




The database is protected by copyright ©ininet.org 2024
send message

    Main page