免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2434 | 回复: 4
打印 上一主题 下一主题

虚拟机器 install MySQL-server-community-5.0.89-0.rhel5.i386.rpm;发现失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-12 15:55 |只看该作者 |倒序浏览
新开一个虚拟机器 网上下MySQL-server-community-5.0.89-0.rhel5.i386.rpm;
MySQL-client-community-5.0.89-0.rhel5.i386.rpm;
发现失败
不知道原因?

执行过程如下
[root@localhost mysql]# rpm -ivh MySQL-server-community-5.0.89-0.rhel5.i386.rpm;
warning: MySQL-server-community-5.0.89-0.rhel5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...                ########################################### [100%]
  1:MySQL-server-community ########################################### [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!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL......Manager of pid-file quit without updating file.[失败]
Giving mysqld 2 seconds to start
[root@localhost mysql]# rpm -ivh MySQL-client-community-5.0.89-0.rhel5.i386.rpm;
warning: MySQL-client-community-5.0.89-0.rhel5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing...                ########################################### [100%]
  1:MySQL-client-community ########################################### [100%]
[root@localhost mysql]# mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost mysql]# mysqladmin -u root password 'bestbrain'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[root@localhost mysql]# cd /usr/bin/
[root@localhost bin]# mysqladmin -u root password 'bestbrain'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[root@localhost bin]#



(我开始用rpm -qa | grep mysql*
之后找出mysql-3.23.58-1
之后用 rpm - e 删除mysql-3.23.58-1这个发现失败oot@localhost mysql]# rpm  -e mysql-3.23.58-1
error: Failed dependencies:
        libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1021-3
        libmysqlclient.so.10 is needed by (installed) MySQL-python-0.9.1-6
        libmysqlclient.so.10 is needed by (installed) MyODBC-2.50.39-12
        libmysqlclient.so.10 is needed by (installed) qt-MySQL-3.1.2-13
        mysql is needed by (installed) MySQL-python-0.9.1-6  ?      问什么原因  ,有没有什么强制删除的方法去掉这个

之后我安装rpm -ivh MySQL-server-community-5.0.89-0.rhel5.i386.rpm
发现失败 error: Failed dependencies:
        libc.so.6(GLIBC_2.3.4) is needed by MySQL-server-community-5.0.89-0.rhel5
        libc.so.6(GLIBC_2.4) is needed by MySQL-server-community-5.0.89-0.rhel5
        rtld(GNU_HASH) is needed by MySQL-server-community-5.0.89-0.rhel5
        MySQL conflicts with mysql-3.23.58-1
[root@localhost mysql]#  ,不知道什么原因  如何解决

论坛徽章:
0
2 [报告]
发表于 2010-01-12 17:28 |只看该作者
先删除之前版本就ok拉

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
3 [报告]
发表于 2010-01-12 18:04 |只看该作者
MySQL conflicts with mysql-3.23.58-1

论坛徽章:
20
CU大牛徽章
日期:2013-04-17 11:48:26羊年新春福章
日期:2015-03-10 22:39:202015年中国系统架构师大会
日期:2015-06-29 16:11:282015亚冠之平阳省
日期:2015-07-31 09:19:042015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-09-30 06:20:002015亚冠之柏太阳神
日期:2015-10-19 20:29:5915-16赛季CBA联赛之天津
日期:2016-11-29 14:03:4315-16赛季CBA联赛之北控
日期:2016-12-24 20:51:492015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-12 20:58:532014年中国系统架构师大会
日期:2014-10-14 15:59:00
4 [报告]
发表于 2010-01-13 15:41 |只看该作者
mysql版本冲突

论坛徽章:
2
午马
日期:2015-01-27 11:22:392015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2010-01-18 13:20 |只看该作者
好像装好了没启服务吧。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP