Learning Mysql



Download 4.24 Mb.
View original pdf
Page32/366
Date04.08.2023
Size4.24 Mb.
#61806
1   ...   28   29   30   31   32   33   34   35   ...   366
Learning MySQL
26 | Chapter 2:
Installing MySQL

Change to the directory containing the MySQL RPM files you downloaded. This is typically your home directory or your desktop directory. To change to the home directory of the user adam
, you’d type cd adam
The location of the desktop directory depends on the Linux distribution you use, but is commonly the Desktop directory under the home directory. To change to the desktop directory of the user adam
, you’d type cd adam/Desktop
You can then install the MySQL server and MySQL client RPMs (or upgrade any existing versions) by typing rpm -upgrade -verbose -hash \
MySQL-server-5.0.22-0.i386.rpm MySQL-client-5.0.22-0.i386.rpm
If all goes well, your MySQL server should now be installed. We’ll look at how to configure it in Configuring a Newly Installed Server later in this chapter.
Installing MySQL on Linux Using a gzipped Tar Archive from MySQL AB
Instead of using an installable package, you can download a compressed directory of the MySQL executable and support files. This process is slightly more involved than installation from a package.
Follow the instructions of Downloading MySQL from the MySQL AB Web Site and download the appropriate package from the Linux (non RPM package) downloads”
section of the MySQL AB downloads page. For this book, select the standard package, rather than the Max or debug versions.
If you’re unsure what to choose, try picking the Linux download at the top of the list.
This will be named something like mysql-standard-5.0.22-linux-i686.tar.gz.
For distribution, Linux software is often packaged using the tar program, and then this package is compressed using the gzip program, so the final file often has the file extension .tar.gz or .tgz. A .tar file, or its gzipped version, is often referred to as a tar-
ball. You’ll need to unpack, or untar, this package tar --gunzip -extract -file mysql-standard-5.0.22-linux-i686.tar.gz
The gunzip option asks the program to decompress the file first using the gunzip program. Some browsers automatically decompress files that have a .gz extension if you get a message like “gzip: stdin: not in gzip format this has probably happened in your case, and you can omit the gunzip option tar -extract -file mysql-standard-5.0.22-linux-i686.tar.gz
You should now have the directory mysql-standard-5.0.22-linux-i686. To keep things simple, we’ll call this the MySQL directory.

Download 4.24 Mb.

Share with your friends:
1   ...   28   29   30   31   32   33   34   35   ...   366




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

    Main page