标签:cep text log 连接 tab centos6 system get centos
centos7对mysql进行在线升级:centos6.X对mysql进行在线升级
①下载mysql源
wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
②安装mysql5.7源
yum localinstall -y mysql57-community-release-el6-7.noarch.rpm
③安装数据库服务器
yum install -y mysql-community-server
④启动数据库服务
service mysqld start
⑤查看临时密码
grep ‘temporary password‘ /var/log/mysqld.log
⑥执行安全脚本,并修改密码
mysql_secure_installation
注意:第一次执行该脚本时,输入密码是⑤步骤查看的
⑦刷新权限 能让其他主机连接该数据库
grant all privileges on . to ‘root‘@‘%‘ identity by ‘密码‘;
flush privileges;
⑧防火墙策略
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
标签:cep text log 连接 tab centos6 system get centos
原文地址:http://blog.51cto.com/19940919/2070147