当前位置:网站首页>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 .”

边栏推荐
- 三個pwn題
- stm32F407-------串行(串口)通信
- Solve the problem of Chinese parsing by configparser
- 图片64base转码与解码
- Stm32f407------- external interrupt
- Huawei's level 22 experts have worked hard for ten years to complete the advanced practical document of cloud native service grid. 6
- Rongyun communication solution solves the pain points of enterprise communication
- How many locks are added to an update statement? Take you to understand the underlying principles
- [Electronic Experiment 2] simple electronic doorbell
- Picture 64base transcoding and decoding
猜你喜欢

PHP uses endroid/qrcode QR code to generate, and Gd library generates sharing posters

Mobile heterogeneous computing technology - GPU OpenCL programming (basic)

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

How many locks are added to an update statement? Take you to understand the underlying principles
![[buuctf.reverse] 131-135](/img/c2/b8b06c8191af2c75bf4ad5c82feaea.png)
[buuctf.reverse] 131-135

window10 phpstudy 安装redis扩展

随笔记:定义setter和getter的三种方式

融云通信解决方案 破解企业沟通痛点

Quartz explanation and use

LinkedIn datahub - experience sharing
随机推荐
What will be done after digital IC Verification?
[C Primer Plus Chapter II after class programming questions]
【状态机设计】Moore、Mealy状态机、三段式、二段式、一段式状态机书写规范
炒股开户万一免五是靠谱么,安全么
Mobile heterogeneous computing technology - GPU OpenCL programming (basic)
ctfshow XSS
TypeScript -- 第七节 枚举
Is the compass stock software reliable? Is it safe to trade stocks on it?
Sword finger offer 12 Path in matrix
随笔记:重新认识 else if
Blue Bridge Cup top ten common heaven level skill - breath of water The type of one recursion
Stm32f407 ------- IO pin multiplexing mapping
Implementation of dynamic timer for quartz
MATLAB 学习笔记(6)MATLAB 的 upsample 函数和 downsample 函数
[SSM] an error is reported that the user name of the access denied for user 'WYF' @ 'localhost' (using password: yes) data becomes the user name of the computer
TypeScript -- 第六节 泛型
表单校验问题——el-select(初始化页面自动触发校验解决办法)
解决ConfigParser解析中文问题
[buuctf.reverse] 131-135
VSCode里使用条件断点(基于GDB)
