linux下安装mysql5.7.22_linux下mysql 5.7.22 安装

二进制安装

1.下载https://dev.mysql.com/downloads/mysql/5.6.html#downloads

2.官方文档https://dev.mysql.com/doc/refman/5.7/en/binary-installation.html

20180930110818236992.png

启动完毕

登录,修改root密码  设置远程登录

设置开机自启

[[email protected] support-files]# service mysql stop

[[email protected] support-files]# service mysql start

配置环境变量:

mysql远程登录问题:

注意:1.mysql默认的字符集是Latin ,需要修改my.cnf   设置为utf-8,并且重启,验证

2.开机启动关闭防火墙

Centos7的防火墙用firewalld.service,而不是iptable……

systemctl stop firewalld.service

systemctl disable firewalld.service

参考文档:

https://blog.csdn.net/qq_37995908/article/details/79092363

https://blog.csdn.net/ctypyb2002/article/details/79757070

https://blog.csdn.net/mengfei86/article/details/51189624

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值