Skip to content

Instantly share code, notes, and snippets.

@ensean
Last active March 8, 2021 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ensean/4dc6c412fdac1755faa33be3b5716089 to your computer and use it in GitHub Desktop.
Save ensean/4dc6c412fdac1755faa33be3b5716089 to your computer and use it in GitHub Desktop.
添加opentuna国内源
```shell
sudo tee /etc/yum.repos.d/mysql-community.repo<<EOF
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://opentuna.cn/mysql/yum/mysql-connectors-community-el7-aarch64/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
[mysql-tools-community]
name=MySQL Tools Community
baseurl=https://opentuna.cn/mysql/yum/mysql-tools-community-el7-aarch64/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
[mysql-8.0-community]
name=MySQL 8.0 Community Server
baseurl=https://opentuna.cn/mysql/yum/mysql-8.0-community-el7-aarch64/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
EOF
```
安装mysql客户端
```
sudo yum makecache
sudo yum install -y mysql
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment