centos6下载 mysql_centos 6.1 mysql 安装

安装不了,用rpm -qa|grep -i mysql 查看发现centos中虽然以前没有安装过mysql但里面还是安装了

[root@***-3 soft]# rpm -qa|grep -i mysql

mysql-libs-5.1.52-1.el6_0.1.x86_64

然后用命令

[root@***-3 soft]# yum -y remove mysql mysql-*

Loaded plugins: fastestmirror, refresh-packagekit

Setting up Remove Process

No Match for argument: mysql

Determining fastest mirrors

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_6

14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Error: Cannot find a valid baseurl for repo: base

接着用命令[root@***-3 soft]#rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64

成功卸载

然后重新安装

[root@***-3 soft]# rpm -ivh MySQL-server-5.5.29-2.el6.x86_64.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 xu-3 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!

启动mysql服务

[root@***-3 soft]# /etc/rc.d/init.d/mysql start 或 者 service mysql start

Starting MySQL..                                           [  OK  ]

检查端口

netstat -nat

tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN

服务已经启动!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值