文章目录
- 场景
- 安装
场景
今天把家里闲置的笔记本安装了centos,设置内网穿透做个人服务器用, 这里记录下安装mysql的过程
安装
-
安装mysql源
sudo yum install -y wget
wget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpmsudo rpm -ivh mysql80-community-release-el7-5.noarch.rpm
-
安装mysql
sudo yum install -y mysql-community-server --nogpgcheck
-
1 导入 MySQL GPG 公钥
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysqlsudo yum clean all
sudo yum makecache
-
-
获取初始化密码
sudo grep ‘temporary password’ /var/log/mysqld.log