Learning Mysql



Download 4.24 Mb.
View original pdf
Page37/366
Date04.08.2023
Size4.24 Mb.
#61806
1   ...   33   34   35   36   37   38   39   40   ...   366
Learning MySQL
32 | Chapter 2:
Installing MySQL


mysql-server-5.0.22-1.FC5.1.i386
The MySQL server and related files
php-5.1.2-5.i386
The PHP HTML-embedded scripting language (PHP Hypertext Preprocessor)
php-mysql-5.1.4-1.i386
A module for PHP applications that use MySQL databases
The version numbers you see will probably be different from the ones we’ve listed.
Once you’ve selected these, click the Apply button, and the software should be installed.
If you’re using an older version of Red Hat or Fedora, the easiest way to install is to login under the root user account (by typing su -
) and launch the package-management program shown in Figure 2-5:
# system-config-packages
Place a checkmark next to the entry for MySQL Database, and click on the Details link.
You’ll see a window such as that in Figure 2-6. Select the “mysql-server” and “php- mysql” packages, and then click the Close button. You’ll be prompted for the Red Hat or Fedora installation CDs, and the selected packages will be installed.
Figure 2-7. Red Hat and Fedora 5 package-management program
Installing Under Linux | 33

If you have a relatively recent version of Red Hat or Fedora, you can also use the yum
(short for Yellowdog Updater Modified) program to automatically download and install the necessary packages from the Internet. This is very convenient because you don’t have to spend time digging up your installation CDs. More importantly, the latest version of a package generally has patches for known bugs and security vulnerabilities.
If you’ve never used yum before, you need to configure it first. First, type su - to login as the system root user, and then update your
/etc/yum.conf configuration file by typing wget http://www.fedorafaq.org/samples/yum.conf
# /bin/mv /etc/yum.conf /etc/yum.conf.bak
# /bin/mv yum.conf /etc
Now, update the yum indexes that list packages and the locations that they can be downloaded from rpm -upgrade -verbose -hash http://www.fedorafaq.org/yum
Retrieving http://www.fedorafaq.org/yum
Preparing... ########################################### [100%]
1:yum-fedorafaq ########################################### Once you’ve configured yum, you can download and install all the programs you need by simply specifying them from the command line yum update mysql mysql-server httpd php php-mysql
[root@saiedpc
]# yum update mysql mysql-server httpd php php-mysql
Could not find update match for php
Could not find update match for php-mysql
Could not find update match for mysql-server
Could not find update match for mysql
Resolving Dependencies
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
httpd i 2.2.2-1.2 updates 1.1 M
Updating for dependencies:
httpd-manual i 2.2.2-1.2 updates 846 k mod_ssl i 1:2.2.2-1.2 updates 99 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)
Total download size 2.0 M
Is this ok [y/N]: y
Downloading Packages mod_ssl-2.2.2-1.2. 100% |=========================| 99 kB 00:14

Download 4.24 Mb.

Share with your friends:
1   ...   33   34   35   36   37   38   39   40   ...   366




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

    Main page