/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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。