当前位置:网站首页>Install mysql8 for Linux X ultra detailed graphic tutorial
Install mysql8 for Linux X ultra detailed graphic tutorial
2022-07-07 19:20:00 【Poetic elegance】
1、 download Mysql8.X Version installation package
1.1 You can download it directly with Baidu online disk
link :https://pan.baidu.com/s/1lc5ctVyp7kXXZXCsh9AiRA?pwd=yyds
Extraction code :yyds
1.2 Download from the official website
The website links
The specific download steps can be seen in another article I wrote separately mysql Download blog Jump Links
2、 Download good mysql Install package upload linux
3、Linux Installation procedure on
- install Mysql rely on 【perl net-tools】
yum install perl net-tools -y
- uninstall mariadb
rpm -qa | grep mariadb
rpm -e --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64
- install mysql
- decompression mysql
tar -xvf mysql-8.0.18-1.el7.x86_64.rpm-bundle.tar
- Install the required installation package ( Four packages after decompression )
Install step by step , You can't take a random step , Otherwise, unload the corresponding slave
rpm -ivh mysql-community-common-8.0.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.18-1.el7.x86_64.rpm
4、 Change custom password
- start-up mysql
systemctl start mysqld
- Find the password and log in Mysql
cat /var/log/mysqld.log | grep password
mysql -u root -p
Enter the newly generated mysql Random cipher
- modify Mysql password 8.0 Version input command
set global validate_password.policy=LOW;
set global validate_password.length=6;
- Change encryption 、
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456' PASSWORD EXPIRE NEVER;
- Update user password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
- Refresh the permissions
FLUSH PRIVILEGES;
5、 Modify the remote connection
use mysql;
update user set host='%' where user = 'root';
commit;
exit;
- restart mysq
systemctl restart mysqld;
- Local navicat Connect remote mysql The server
边栏推荐
- 虚拟数字人里的生意经
- 杰理之相同声道的耳机不允许配对【篇】
- Hongmeng smart home [1.0]
- LeetCode1051(C#)
- 解决远程rviz报错问题
- testing and SQA_ Dynamic white box test [easy to understand]
- Micro service remote debug, nocalhost + rainbow micro service development second bullet
- Hutool - lightweight DB operation solution
- 2022.07.04
- The moveposition function of rigidbody2d of unity2d solves the problem of people or screen jitter when moving
猜你喜欢
3. About cookies
10 schemes to ensure interface data security
[tpm2.0 principle and Application guide] Chapter 16, 17 and 18
CMD command enters MySQL times service name or command error (fool teaching)
多个kubernetes集群如何实现共享同一个存储
从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks
2022.07.04
Command mode - unity
How to share the same storage among multiple kubernetes clusters
Multimodal point cloud fusion and visual location based on image and laser
随机推荐
Zhong Xuegao wants to remain innocent in the world
[mime notes]
杰理之关于 TWS 交叉配对的配置【篇】
企业MES制造执行系统的分类与应用
鸿蒙智能家居【1.0】
L1-019 who falls first (Lua)
unity2d的Rigidbody2D的MovePosition函数移动时人物或屏幕抖动问题解决
咋吃都不胖的朋友,Nature告诉你原因:是基因突变了
AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
LeetCode 535(C#)
RISCV64
POJ 1182: food chain (parallel search) [easy to understand]
RISCV64
歌单11111
Experiment 1 of Compilation Principle: automatic implementation of lexical analyzer (Lex lexical analysis)
testing and SQA_动态白盒測试[通俗易懂]
[Base64 notes] [suggestions collection]
testing and SQA_ Dynamic white box test [easy to understand]
【MIME笔记】
2022.07.02