当前位置:网站首页>Centos8 installation mysql8.0.22 tutorial
Centos8 installation mysql8.0.22 tutorial
2022-07-02 05:20:00 【Brother Xiaoming takes you flying】
The installation steps are as follows :
1. uninstall
yum remove -y mysql
find / -name mysql // Found residual files , Re pass rm -rf Delete the corresponding file

2. download
wget https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm
yum install mysql80-community-release-el8-1.noarch.rpm

3. Check the data source
see mysql Source installed successfully :
yum repolist enabled | grep "mysql.*-community.*"

4. Ban CentOS8 Bring their own mysql modular
yum module disable mysql // To disable the command

5. install mysql command
yum install mysql-community-server --nogpgcheck

Is this ok [y/Y] always y to the end
6. start-up mysql
Start up mysql when , There's a problem :
[[email protected] soft]# service mysqld start // Start command
Have a problem
correct Start command :
[[email protected] soft]# /bin/systemctl start mysqld.service// Start command
[[email protected] soft]# service mysqld status //

7. Show mysql Random password of
grep 'temporary password' /var/log/mysqld.log
The password is host: The next string of characters .
8. Log in and modify mysql password
mysql -u root -p // Enter the password generated above

Pay attention to changing password , The password here is changed to “Root_21root”
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Root_21root'; // Because when we change the password casually , Generally, it is not satisfied with its strategy
The following errors will be reported :
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
terms of settlement :
Be sure to change the default password to : Root_21root Meet its strategy , Then perform the following operations :
SHOW VARIABLES LIKE 'validate_password%'; // Check password policy
Change password length :
set global validate_password.length=1; //( length )
Change password level :
set global validate_password.policy=0; //( Grade )
Set the password you want :
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
Strategy before modification :
Modified policy :
9.Mysql8.0.22 Open remote access
create user 'root'@'%' identified by 'root123'; //1、 Create permission record first
grant all privileges on *.* to 'root'@'%' with grant option; //2、 to grant authorization

Open the firewall port
Open directly in the security group mysql Port number
solve 2059 - Authentication plugin ‘caching_sha2_password’ cannot be loaded:
From the error message caching_sha2_password Can't load .
The above error is due to the fact that the existing client connection software does not support Mysql8 New encryption method caching_sha2_password, So we need to change the way users encrypt , Change it to the old encryption verification method . You can see that the encryption method of the current user is caching_sha2_password. Execute the following command :
use mysql;
select user,plugin from user where user='root';
alter user 'root'@'%' identified with mysql_native_password by '[email protected]';// Change the user's encryption mode to mysql_native_password.
flush privileges;// This must be implemented , Execute the command to make the permission configuration item take effect immediately .
Try connecting again Mysql, Successful connection .
Sketch Map :

Reprint :https://blog.csdn.net/qq_39150374/article/details/112471108
边栏推荐
- Pyechart1.19 national air quality exhibition
- Fabric. JS compact JSON
- Gee series: Unit 1 Introduction to Google Earth engine
- LeetCode 1175. Prime number arrangement (prime number judgment + Combinatorial Mathematics)
- Video cover image setting, put cover images into multiple videos in the simplest way
- Domestic all Chinese automatic test software apifox
- 7.1模拟赛总结
- Basic differences between Oracle and MySQL (entry level)
- 7.1 Résumé du concours de simulation
- 数据库批量插入数据
猜你喜欢

Gee: remote sensing image composite and mosaic

青训营--数据库实操项目

Video multiple effects production, fade in effect and border background are added at the same time

Paddlepaddle project source code

LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)

Simple and practical accounting software, so that accounts can be checked

黑马笔记---Map集合体系

Detailed explanation of Pointer use

Fabric.js 精简JSON
![Gee: use of common mask functions in remote sensing image processing [updatemask]](/img/55/bf4ef5fc923242e72caab71f1a4e4b.jpg)
Gee: use of common mask functions in remote sensing image processing [updatemask]
随机推荐
Fabric.js 圆形笔刷
ERP management system development and design existing source code
Gee series: Unit 4 data import and export in Google Earth engine
Disable access to external entities in XML parsing
线程池批量处理数据
画波形图_数字IC
Gee dataset: chirps pentad high resolution global grid rainfall dataset
leetcode两数相加go实现
Gee: use of common mask functions in remote sensing image processing [updatemask]
7.1模擬賽總結
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
The El cascader echo only selects the questions that are not displayed
Storage of data
Fabric. JS iText superscript and subscript
2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas
Operator details
4. Flask cooperates with a tag to link internal routes
Set the default style of scroll bar Google browser
leetcode存在重复元素go实现
Foreign trade marketing website system development function case making