当前位置:网站首页>Centos7 install mysql8.0
Centos7 install mysql8.0
2022-07-24 09:39:00 【liuyunshengsir】
1. download
https://repo.mysql.com/
find
wget https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm
2. install yum repo File and update yum cache
rpm -ivh mysql80-community-release-el7-1.noarch.rpm
yum clean all
yum makecache
yum provides '*/applydeltarpm'
yum -y install deltarpm-3.6-3.el7.x86_64
yum install epel-release
3. Use yum install mysql
You can see MySQL 5.5 5.6 5.7 Is disabled and MySQL 8.0 Is enabled ;
[[email protected] ~]# yum repolist all | grep mysql
mysql-cluster-7.5-community/x86_64 MySQL Cluster 7.5 Community disabled
mysql-cluster-7.5-community-source MySQL Cluster 7.5 Community disabled
mysql-cluster-7.6-community/x86_64 MySQL Cluster 7.6 Community disabled
mysql-cluster-7.6-community-source MySQL Cluster 7.6 Community disabled
mysql-connectors-community/x86_64 MySQL Connectors Community enabled: 230
mysql-connectors-community-source MySQL Connectors Community disabled
mysql-tools-community/x86_64 MySQL Tools Community enabled: 138
mysql-tools-community-source MySQL Tools Community - Sou disabled
mysql-tools-preview/x86_64 MySQL Tools Preview disabled
mysql-tools-preview-source MySQL Tools Preview - Sourc disabled
mysql55-community/x86_64 MySQL 5.5 Community Server disabled
mysql55-community-source MySQL 5.5 Community Server disabled
mysql56-community/x86_64 MySQL 5.6 Community Server disabled
mysql56-community-source MySQL 5.6 Community Server disabled
mysql57-community/x86_64 MySQL 5.7 Community Server disabled
mysql57-community-source MySQL 5.7 Community Server disabled
mysql80-community/x86_64 MySQL 8.0 Community Server enabled: 321
mysql80-community-source MySQL 8.0 Community Server disabled
View small version
[[email protected] ~]# yum list mysql-community-server --showduplicates | sort -r
* updates: mirrors.ustc.edu.cn
mysql-community-server.x86_64 8.0.29-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.28-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.27-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.26-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.25-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.24-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.23-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.22-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.21-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.20-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.19-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.18-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.17-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.16-2.el7 mysql80-community
mysql-community-server.x86_64 8.0.16-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.15-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.14-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.13-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.12-1.el7 mysql80-community
mysql-community-server.x86_64 8.0.11-1.el7 mysql80-community
install
[[email protected] ~]# yum search mysql | grep mysql-community-server.x86_64
mysql-community-server.x86_64 : A very fast and reliable SQL database server
# Import key, Otherwise, the following error occurs
# Failing package is: mysql-community-client-8.0.28-1.el7.x86_64 GPG Keys are configured
# as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
# Install the specified small version
yum install -y mysql-community-server-8.0.25
4. Turn on mysql service
systemctl enable mysqld.service
systemctl start mysqld.service
5. Get the initial password to login mysql
[[email protected] ~]# cat /var/log/mysqld.log | grep password
2022-04-14T06:49:57.151045Z 6 [Note] [MY-010454] [Server] A temporary password is generated for [email protected]: ed>1Rfx?
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'AAbb1122!!';
# Note that the number and type are at least large + Write + A lowercase letter + Symbol + Numbers
6. Scripts are installed directly
#!/usr/bin/env bash
yum install -y wget
wget https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm
rpm -ivh mysql80-community-release-el7-1.noarch.rpm
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
yum install -y mysql-community-server-8.0.25
systemctl enable mysqld.service
cat /var/log/mysqld.log | grep password
边栏推荐
- Jenkins post build script does not execute
- Definition and initialization of cv:: mat
- How to judge and analyze NFT market briefly through NFT go?
- DP longest common subsequence detailed version (LCS)
- What's the difference between testing / developing programmers' professionalism and salted fish? They don't want to be excellent coders?
- Spark Learning: Spark implementation of distcp
- [don't bother with reinforcement learning] video notes (I) 2. Summary of reinforcement learning methods
- PHP Basics - PHP magic method
- Racecar multi-point navigation experiment based on ROS communication mechanism
- Cess test online line! The first decentralized storage network to provide multiple application scenarios
猜你喜欢

详解LinkedList

Code random notes_ Linked list_ Turn over the linked list in groups of 25K

Es document CRUD

Account 1-3

Problems and abuse of protocol buffers

Spark Learning: using RDD API to implement inverted index

Common evaluation indexes of medical image segmentation

JS locate Daquan to get the brother, parent and child elements of the node, including robot instances

Detailed LinkedList

Cloud primordial (12) | introduction to kubernetes foundation of kubernetes chapter
随机推荐
Understanding of magnetic parameters in Hall sensors
[don't bother to strengthen learning] video notes (II) 1. What is Q-learning?
如何通过NFT GO,来简要判断、分析NFT市场?
Spark Learning: Spark implementation of distcp
Tang Yudi opencv background modeling
What's the difference between testing / developing programmers' professionalism and salted fish? They don't want to be excellent coders?
Spark Learning: compile spark source code in win10
web安全入门-开源防火墙Pfsense安装配置
Tiflash source code reading (V) deltatree storage engine design and implementation analysis - Part 2
Color recognition of regions of interest in pictures and videos based on OpenCV
Development history of the first commercial humanoid biped robot in China
What is the component customization event we are talking about?
Why add where exists() to the update select statement? And update with a with statement
Getting started with identityserver4
We were tossed all night by a Kong performance bug
Dark king | analysis of zego low illumination image enhancement technology
CUDA day 2: GPU core and Sm core components [easy to understand]
SQL server2012 installation method details [easy to understand]
PHP Basics - session control - cookies
Definition and initialization of cv:: mat