当前位置:网站首页>MSYQL is abnormal. Don't worry. Mr. Allen will point out the puzzle
MSYQL is abnormal. Don't worry. Mr. Allen will point out the puzzle
2022-06-28 23:53:00 【Software testing】

In the performance test , Database performance issues , It could take up 70%, So performance testing , Database is a very, very important knowledge . however , I've been talking about MySQL When it comes to databases , But I met an embarrassment .
We have classes , Yes, all students are required to install it by themselves MySQL Database , although , There are many ways to install , however , Use yum Command to install , It is also something that every student must master , therefore , When I was in class , Use the common used in previous classes yum Command to install mysql5.7 edition
wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum install mysql-community-server -y
Results the execution result told me that the installation failed :

It has been successfully installed before , But now it can't be installed .
What's going on? ?
result , Let me find this :


What do you mean by that ? That is to say 2022 year 1 month 18 Japan ,MySQL Released 5.7.37 edition , Updated the secret key , The original secret key can only support 2022 year 2 month 16 Japan , in other words , If you don't pay attention to this message , Yours MySQL May be in 2022 year 2 month 16 In the future , It may not work properly .
Use yum Command to install , Will be installed to the latest mysql5.7.37 Version up , Result key error , Installation did not succeed .
Now? , There's a problem , How to solve this problem ?
Tips: The following method , All new installations MySQL, therefore , I don't have to back up the database , If , you are here 2022 year 2 month 16 In the future , See this article , Or your MySQL There's something wrong with the database , Please back up the database first . Develop good habits .
** Method 1 :** uninstall mysql57 Of noarch package , install mysql80 Of noarch package , Get the secret key
First , Uninstall the installed “mysql57-community-release”
rpm -e mysql57-community-release
then , install mysql80-community-release
wget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm
rpm -Uvh mysql80-community-release-el7-5.noarch.rpm
because , What we want to install is mysql5.7 Version of , Do not want to install mysql8, therefore , We need to change yum Installed by default MySQL edition .
# yum repolist all | grep mysql
# This command , You can view the current , default mysql edition , The result is enabled , Is the default version
# Method 1 :
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql57-community
# This method is simple , however , Some systems , No, yum-config-manager command
# Method 2 :
vim /etc/yum.repos.d/mysql-community.repo
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch
enabled=0 # Change this to 1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/7/$basearch
enabled=1 # Change this to 0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
# enable by 0 For disable , 1 On behalf of enable
# After modification and saving , Re execution yum repolist all | grep mysql You can see the default mysql The version is 57
After doing the above , You can install it directly mysql57 了
yum install mysql-community-server -y

See this picture , Are you happy , Perfect solution ,mysql5.7.37 edition , Installation successful .
** Method 2 :** Use mysql80 Of noarch package , To get the key , Then install mysql57
This method , And the 1 Methods , Difference is Less execution uninstall mysql57-community-release, This step .
** Method 3 :** Use mysql80 The key of , Replace the current key
Upload ‘RPM-GPG-KEY-mysql-2022’ ‘RPM-GPG-KEY-mysql’ File to /etc/pki/rpm-gpg Under the path .
then , modify mysql-community.repo The configuration file
# Method 1 :
yum-config-manager --disable mysql80-community
yum-config-manager --enable mysql57-community
# This method is simple , however , Some systems , No, yum-config-manager command
# Method 2 :
vim /etc/yum.repos.d/mysql-community.repo
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch
enabled=0 # Change this to 1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
# enable by 0 For disable , 1 On behalf of enable
Next , It is directly installed
yum install mysql-community-server -y
ok, Perfect solution , Three ways to , I can do it practically , Have you encountered the above problems , If you encounter it, go and try it !
The technology industry should continue to learn , Don't fight alone in your study , It's best to keep warm , Achieve each other and grow together , The effect of mass effect is very powerful , Let's learn together , Punch in together , Will be more motivated to learn , And you can stick to it . You can join our testing technology exchange group :914172719( There are various software testing resources and technical discussions )
Here's a message for you , Mutual encouragement : When our abilities are insufficient , The first thing to do is internal practice ! When we are strong enough , You can look outside !

Finally, we also prepared a supporting learning resource for you , You can scan the QR code below via wechat , Get one for free 216 Page software testing engineer interview guide document information . And the corresponding video learning tutorial is free to share !, The information includes basic knowledge 、Linux necessary 、Shell、 The principles of the Internet 、Mysql database 、 Special topic of bag capturing tools 、 Interface testing tool 、 Test advanced -Python Programming 、Web automated testing 、APP automated testing 、 Interface automation testing 、 Testing advanced continuous integration 、 Test architecture development test framework 、 Performance testing 、 Safety test, etc. .
Friends who like software testing , If my blog helps you 、 If you like my blog content , please “ give the thumbs-up ” “ Comment on ” “ Collection ” One button, three links !
Good article recommends
Interview : First tier cities move bricks ! Another software testing post ,5000 That's enough …
What kind of person is suitable for software testing ?
The man who leaves work on time , Promoted before me …
The test post changes jobs repeatedly , Jump, jump and disappear …
“ One year in the job , The automated software test hired by high salary was discouraged .”

边栏推荐
- Easy to use free ppt template
- Stm32f407------- general timer
- stm32F407-------LCD
- Windows10 phpstudy installing redis extension
- Online yaml to JSON tool
- Stm32f407----- register address name mapping analysis
- Phoenix安装教程
- 关联线探究,如何连接流程图的两个节点
- Use conditional breakpoints in vscode (based on GDB)
- 请问指南针股票软件可靠吗?在上面交易股票安全吗?
猜你喜欢
![[buuctf.reverse] 131-135](/img/c2/b8b06c8191af2c75bf4ad5c82feaea.png)
[buuctf.reverse] 131-135

Notes: three ways to define setters and Getters

stm32F407-------外部中断

MATLAB 学习笔记(6)MATLAB 的 upsample 函数和 downsample 函数

TypeScript--第四节:函数

三個pwn題

How many locks are added to an update statement? Take you to understand the underlying principles

关联线探究,如何连接流程图的两个节点

Mobile heterogeneous computing technology - GPU OpenCL programming (basic)

stm32F407-------NVIC中断优先级管理
随机推荐
TypeScript -- 第二节:变量声明
Is it safe to open a stock account on the Internet?
TypeScript --第三节:接口
Ahai's advice
[buuctf.reverse] 131-135
With notes: insert sort --from WCC
Three PWN questions
"Five considerations" for safe use of the Internet
Is it reliable and safe to avoid five in case of stock trading account opening
What will be done after digital IC Verification?
Yyds dry goods inventory building knowledge map from scratch with neo4j (I)
Auto encoder
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
三個pwn題
【C Primer Plus第二章課後編程題】
Huawei's level 22 experts have worked hard for ten years to complete the advanced practical document of cloud native service grid. 6
ES6模块
Stm32f407----- register address name mapping analysis
LinkedIn DataHub --- 经验分享
I can't sleep
