站群服务器CentOS 7安装 MySQL 8.0
发布时间:2020/6/8 15:33:10 来源: 纵横数据
站群服务器CentOS 7安装 MySQL 8.0【艾娜】
安装Mysql有两种方式:
----------------------------
新上的美国站群服务器8C 现货 限量特价 速定! cn2限量一人3台
E5 16G 1T 8C 232IP
E5*2 32G 1T 8C 232IP
美国站群服务器 特价欢迎联系在线客服 QQ 4001886560 482986990
直接下载官方的源(比较慢)
https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm # 下载rpm包yum localinstall mysql80-community-release-el7-1.noarch.rpm # 处理相关依赖yum install mysql-community-server # 安装
用163的源,分开安装
wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-common-8.0.18-1.el7.x86_64.rpm wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-libs-8.0.18-1.el7.x86_64.rpm wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-client-8.0.18-1.el7.x86_64.rpm wget https://mirrors.163.com/mysql/Downloads/MySQL-8.0/mysql-community-server-8.0.18-1.el7.x86_64.rpm rpm -ivh mysql-community-common-8.0.18-1.el7.x86_64.rpm # rpm下载rpm -ivh mysql-community-libs-8.0.18-1.el7.x86_64.rpm rpm -ivh mysql-community-client-8.0.18-1.el7.x86_64.rpm rpm -ivh mysql-community-server-8.0.18-1.el7.x86_64.rpm
重启Mysql
service mysqld start
查看Mysql默认密码
cat /var/log/mysqld.log | grep password
登录
mysql -uroot -p # 回车,复制上面的密码即可
本文来源:
https://www.zndata.com/article/2670.html
[复制链接]
链接已复制
下一篇:SQL语句规范的写法