弄了一天终于 在redhat 上装上了 mysql-server。写此文主要是mark一下
主要问题:
装 mysql-server 出现下列依赖问题
file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.5.17-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.52-1.el6_0.1.x86_64
之前还没太注意这个问题,又去用yum 结果repo的问题,没有mysql-server available~郁闷啊~结果又去找yum mysql 源,找到个不错的
http://www.ha97.com/4052.html 恩很兴奋~之后又出现错误 又是依赖关系 需要Perl-DBD-mysql 额~去找啊找。。。。sigh。。不管怎样,走了很多弯路,根本原因就是原来的系统中已经装了个老一点的包引起的冲突~
mysql-libs-5.1.52-1.el6_0.1.x86_64
所以最后回来,发现这个问题(汗~os早就告诉你了,结果我也没太看清conflicts 这个词~关键自己linux没学过什么东西基本的语句还要去现查,唉~要多学点东西啊)
恩~之后看到了http://blog.csdn.net/monkey_d_meng/article/details/5573610 恩~照着删除依赖的包,结果发现又是一层依赖,很多层依赖,自己就虚了~结果接着查
看到了http://blog.csdn.net/huangbiao86/article/details/6650477 发现一条必杀技能啊!!依赖关系的克星(其实我真怕把这么多 东西删掉会不会出现什么问题,豁出去了!!!删!!!!!亮必杀计!!!!!!!!!!)
直接必杀技(管你有多少层多少个依赖关系):
yum -y remove mysql-libs-5.1.52* -y 的意思就是remove 前,不用询问。
真是一站式服务啊:
========================================================================
Package Arch Version Repository Size
========================================================================
Removing:
mysql-libs x86_64 5.1.52-1.el6_0.1 @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1
4.0 M
Removing for dependencies:
cronie x86_64 1.4.4-7.el6 @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1
166 k
cronie-anacron x86_64 1.4.4-7.el6 @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1
43 k
crontabs noarch 1.10-32.1.el6 @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1
2.4 k
postfix x86_64 2:2.6.6-2.1.el6_0 @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1
9.7 M
redhat-lsb x86_64 4.0-3.el6 @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1
22 k
sysstat x86_64 9.0.4-18.el6 @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1
806 k
Transaction Summary
========================================================================
Remove 7 Package(s)
Installed size: 15 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : redhat-lsb-4.0-3.el6.x86_64 1/7
Erasing : sysstat-9.0.4-18.el6.x86_64 2/7
Erasing : cronie-anacron-1.4.4-7.el6.x86_64 3/7
Erasing : crontabs-1.10-32.1.el6.noarch 4/7
Erasing : cronie-1.4.4-7.el6.x86_64 5/7
Erasing : 2:postfix-2.6.6-2.1.el6_0.x86_64 6/7
Erasing : mysql-libs-5.1.52-1.el6_0.1.x86_64 7/7
duration: 221(ms)
Installed products updated.
Removed:
mysql-libs.x86_64 0:5.1.52-1.el6_0.1
Dependency Removed:
cronie.x86_64 0:1.4.4-7.el6 cronie-anacron.x86_64 0:1.4.4-7.el6
crontabs.noarch 0:1.10-32.1.el6 postfix.x86_64 2:2.6.6-2.1.el6_0
redhat-lsb.x86_64 0:4.0-3.el6 sysstat.x86_64 0:9.0.4-18.el6
Complete!
好爽快啊!!之后rpm 安装已经下载好的mysql-server rpm包。
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
真爽快啊!!
在此感谢 CSDN 的
MONKEY_D_MENG
http://blog.csdn.net/monkey_d_meng/article/details/5573610
和huangbiao86
http://blog.csdn.net/huangbiao86/article/details/6650477