当前位置: 技术问答>linux和unix
rpm -ivh MySQL-server-5.5.18-1.linux2.6.i386.rpm安装时发生错误
来源: 互联网 发布时间:2017-01-24
本文导语: 我通过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 ...
我通过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)
[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文件
从一个更新的coreutils包中拷贝一个wc过来就可以了
或者你去找个新一点的wc来替换你的系统上的/usr/bin/wc文件
|
rehat9换个新版本的吧,这个也太老点了。你现在做的相当于在win98上安装office2011
|
You have more than one PID file:
你已经启动一个mysql了?
ps -ef | grep mysql 看看
你已经启动一个mysql了?
ps -ef | grep mysql 看看
|
可能是版本的问题.lz不能连网吗?直接yum多方便
|
直接yum insatall MySQL 就行,系统应该已经安装yum 了