日期:2014-05-16  浏览次数:20618 次

rpm -ivh MySQL-server-5.5.18-1.linux2.6.i386.rpm安装时发生错误
我通过rpm -ivh MySQL-server-5.5.18-1.linux2.6.i386.rpm命令生成的rpm文件,安装时发生错误
[root@localhost i386]# rpm -ivh MySQL-server-5.5.18-1.linux2.6.i386.rpm
Preparing... ########################################### [100%]
You have more than one PID file:
ls: /var/lib/mysql/*.pid: 没有那个文件或目录
Please check which one (if any) corresponds to a running server
and delete all others before repeating the MySQL upgrade.
error: %pre(MySQL-server-5.5.18-1.linux2.6)) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping MySQL-server-5.5.18-1.linux2.6)

------解决方案--------------------
or you can simply copy wc from a newer coreutils package and leave it there worked for me...


从一个更新的coreutils包中拷贝一个wc过来就可以了

或者你去找个新一点的wc来替换你的系统上的/usr/bin/wc文件

------解决方案--------------------
可能是版本的问题.lz不能连网吗?直接yum多方便
------解决方案--------------------
直接yum insatall MySQL 就行,系统应该已经安装yum 了
------解决方案--------------------
探讨

引用:
这是在rhel3上安装5.1.50版的问题,你的也是rhel3?

我的是rehat9

------解决方案--------------------
You have more than one PID file:

你已经启动一个mysql了?


ps -ef | grep mysql 看看