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

边栏推荐
猜你喜欢

Stm32f407 ------ clock system (systeminit clock initialization, systick tick timer)

LinkedIn DataHub --- 经验分享

stm32F407-------GPIO输入实验

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

【状态机设计】Moore、Mealy状态机、三段式、二段式、一段式状态机书写规范

What are the virtual machine software? What are their respective roles?
![Edge extraction based on Halcon learning [2] circles Hdev routine](/img/e4/e3738d71c2ff5a239a12f67d06e2c9.jpg)
Edge extraction based on Halcon learning [2] circles Hdev routine

The second session of question swiping and clock out activity -- solving the switching problem with recursion as the background (2)

stm32F407-------RTC实时时钟

Stm32f407 ------- IO pin multiplexing mapping
随机推荐
PHP 使用endroid/qrcode 二维码生成, GD库生成分享海报
stm32F407-------时钟系统(SystemInit时钟初始化、Systick滴答定时器)
[machine learning] numerical analysis 02 -- finding roots of arbitrary equations
Analysis of CSRF Cross Site Request Forgery vulnerability
pymysql.Error 获取错误码与具体错误信息
【C Primer Plus第二章課後編程題】
[state machine design] Moore, Mealy state machine, three-stage, two-stage and one-stage state machine writing specification
"Five considerations" for safe use of the Internet
Stm32f407------- external interrupt
The secondary market is full of bad news. How should the market go next? One article will show you the general trend
Be on the list again! Know that Chuangyu was selected as one of the top 50 competitive enterprises in China's network security industry in 2022
Yes, use local_ setup. Bash or setup bash
stm32F407-------RTC实时时钟
解决ConfigParser解析中文问题
Basic operation of MySQL database: import hellodb SQL and query as required; Create account and authorize
stm32F407-------串行(串口)通信
stm32F407-------LCD
随笔记:模拟类数组(array-like)的方法
stm32F407-------LCD
TypeScript -- 第七节 枚举
