centos6.8 安装mysql 5.5_如何在centos6.8中安装mysql5.5

/etc/init.d/mysql

本来想安装mysql5.6或者5.7的,无奈,总是安装出错,所以改为安装5.5

安装步骤

1.确保把yum的mysql源删除干净

Code:

yum clean all

Code:

yum clean metadata

Code:

yum clean dbcache

Code:

yum update

2.安装mysql 5.5

wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-server-5.5.48-1.el6.x86_64.rpm

wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-client-5.5.48-1.el6.x86_64.rpm

wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-devel-5.5.48-1.el6.x86_64.rpm

rpm -ivh MySQL-server-5.5.48-1.el6.x86_64.rpm

rpm -ivh MySQL-client-5.5.48-1.el6.x86_64.rpm

rpm -ivh MySQL-devel-5.5.48-1.el6.x86_64.rpm3.设置root可以远程登录

1.启动mysql

/etc/init.d/msyql start

2.设置mysql的root密码

/usr/bin/mysqladmin -u root password '123456'

3.设置远程登录

a本地登录mysql

mysql -u root –p

b update user set host ='%' where user= 'root';

c:flush privileges

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值