/etc/init.d/MysqL
本来想安装MysqL5.6或者5.7的,无奈,总是安装出错,所以改为安装5.5
安装步骤
Code:
yum clean all
yum clean Metadata
yum clean dbcache
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 start2.设置MysqL的root密码
/usr/bin/MysqLadmin -u root password '123456'
3.设置远程登录
MysqL -u root –p
b update user set host ='%' where user= 'root';
c:flush privileges
原文链接:https://www.f2er.com/centos/375694.html