当前位置:网站首页>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
边栏推荐
- 数据的储存
- Creation and destruction of function stack frames
- Pyechats 1.19 generate a web version of Baidu map
- Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster
- Feign realizes file uploading and downloading
- Gee: create a new feature and set corresponding attributes
- 删除排序数组中的重复项go语言实现
- Video multiple effects production, fade in effect and border background are added at the same time
- Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
- Fabric. JS compact JSON
猜你喜欢
Fabric. JS iText superscript and subscript
CubeMx DMA笔记
6. Network - Foundation
Gee series: unit 6 building various remote sensing indexes in Google Earth engine
Johnson–Lindenstrauss Lemma(2)
Gee series: unit 9 generate sampling data in GEE [random sampling]
LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
Fabric.js IText 上标和下标
Fabric. JS activation input box
Pycharm breakpoint management: temporarily cancel some breakpoints + run directly to a line
随机推荐
7. Eleven state sets of TCP
Fabric. JS background is not affected by viewport transformation
Briefly introduce chown command
运维工作的“本手、妙手、俗手”
2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas
Set the default style of scroll bar Google browser
Global and Chinese markets for marine selective catalytic reduction systems 2022-2028: Research Report on technology, participants, trends, market size and share
LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
LS1046nfs挂载文件系统
Fabric.js 右键菜单
Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]
leetcode存在重复元素go实现
黑馬筆記---Set系列集合
fastText文本分类
【pyinstaller】_get_sysconfigdata_name() missing 1 required positional argument: ‘check_exists‘
Cubemx DMA notes
Leetcode 18 problem [sum of four numbers] recursive solution
How to make an RPM file
Collectors. Groupingby sort
Global and Chinese market of travel data recorder (VDR) 2022-2028: Research Report on technology, participants, trends, market size and share