首页  

mysql5.7.26安装     所属分类 mysql 浏览量 1334
uname -a
cat /etc/redhat-release 

CentOS Linux release 7.6.1810 (Core) 


https://dev.mysql.com/downloads/mysql/5.7.html#downloads
下载  mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar 

解压可看到多个 rpm包

依次安装

rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm


sudo  systemctl start mysqld.service

启动服务 
daemon命令
service mysqld start

systemctl 命令
systemctl start mysqld.service

使用 mysqld 脚本启动
/etc/inint.d/mysqld stop

/var/log/mysqld.log
A temporary password is generated for root@localhost: d5+IAwkpQhyZ

登录mysql并修改root密码

mysql -u root -p 

set password = password('YOUR-NEW-PASSWORD');

根据需要开启防火墙端口
#开启3306端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent  
#刷新防火墙
firewall-cmd --reload

上一篇     下一篇
aerospike恢复

客户的游艇在哪里摘录

MySQL5.7.26用户管理

centos7防火墙配置

mysql5.7 JSON 数据类型测试

aerospike备份恢复测试