二进制安装
1.下载https://dev.mysql.com/downloads/mysql/5.6.html#downloads
2.官方文档https://dev.mysql.com/doc/refman/5.7/en/binary-installation.html
启动完毕
登录,修改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