使用yum安装 (rhas5.5)

1: mount iso文件
mount /dev/cdrom /mnt
ll /mnt

2:修改yum的配置文件
cd /etc/yum.repos.d
nano rhel-debuginfo.repo #修改这个文件 增加下面文字
[DVDROM]
name=dvdyum
baseurl=file:///mnt/Server
gpgcheck=0
enabled=1

3:安装mysql
yum install mysql  #安装mysql
提示如下(其中说明没有注册到RHN不能提供支持):
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.77-4.el5_4.2 set to be updated
--> Processing Dependency: perl(DBI) for package: mysql
--> Running transaction check
---> Package perl-DBI.i386 0:1.52-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package          Arch         Version                     Repository      Size
================================================================================
Installing:
mysql            i386         5.0.77-4.el5_4.2            DVDROM         4.8 M
Installing for dependencies:
perl-DBI         i386         1.52-2.el5                  DVDROM         605 k

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 5.3 M
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           2.5 GB/s | 5.3 MB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-DBI                                                 1/2
  Installing     : mysql                                                    2/2

Installed:
  mysql.i386 0:5.0.77-4.el5_4.2

Dependency Installed:
  perl-DBI.i386 0:1.52-2.el5

Complete!

总结一下:
mount
nano rhel-debuginfo.repo
yum install mysql

error: %pre(mysql-server-5.0.77-4.el5_4.2.i386) scriptlet failed, signal 2
error:   install: %pre scriptlet failed (2), skipping mysql-server-5.0.77-4.el5_4.2

Installed:
  mysql-server.i386 0:5.0.77-4.el5_4.2


补充:安装mysql-server
yum install mysql-server


启动mysql-server
service mysqld start


你可能感兴趣的:(mysql,Security,perl,UP)