使用yum安装 (rhas5.5)
1:mountiso文件
mount/dev/cdrom/mnt
ll/mnt
2:修改yum的配置文件
cd/etc/yum.repos.d
nanorhel-debuginfo.repo#修改这个文件增加下面文字
[DVDROM]
name=dvdyum
baseurl=file:///mnt/Server
gpgcheck=0
enabled=1
3:安装mysql
yuminstallmysql#安装mysql
提示如下(其中说明没有注册到RHN不能提供支持):
Loadedplugins:rhnplugin,security
ThissystemisnotregisteredwithRHN.
RHNsupportwillbedisabled.
SettingupInstallProcess
ResolvingDependencies
-->Runningtransactioncheck
--->Packagemysql.i3860:5.0.77-4.el5_4.2settobeupdated
-->ProcessingDependency:perl(DBI)forpackage:mysql
-->Runningtransactioncheck
--->Packageperl-DBI.i3860:1.52-2.el5settobeupdated
-->FinishedDependencyResolution
DependenciesResolved
================================================================================
PackageArchVersionRepositorySize
================================================================================
Installing:
mysqli3865.0.77-4.el5_4.2DVDROM4.8M
Installingfordependencies:
perl-DBIi3861.52-2.el5DVDROM605k
TransactionSummary
================================================================================
Install2Package(s)
Upgrade0Package(s)
Totaldownloadsize:5.3M
Isthisok[y/N]:y
DownloadingPackages:
--------------------------------------------------------------------------------
Total2.5GB/s|5.3MB00:00
Runningrpm_check_debug
RunningTransactionTest
FinishedTransactionTest
TransactionTestSucceeded
RunningTransaction
Installing:perl-DBI1/2
Installing:mysql2/2
Installed:
mysql.i3860:5.0.77-4.el5_4.2
DependencyInstalled:
perl-DBI.i3860:1.52-2.el5
Complete!
总结一下:
mount
nanorhel-debuginfo.repo
yuminstallmysql
error:%pre(mysql-server-5.0.77-4.el5_4.2.i386)scriptletfailed,signal2
error:install:%prescriptletfailed(2),skippingmysql-server-5.0.77-4.el5_4.2
Installed:
mysql-server.i3860:5.0.77-4.el5_4.2
补充:安装mysql-server
yuminstallmysql-server
启动mysql-server
servicemysqldstart