当前位置:网站首页>CentOS 7.5 install MySQL 8.0.27---yum
CentOS 7.5 install MySQL 8.0.27---yum
2022-06-29 18:34:00 【Albert__ Einstein】
One 、 Create installation directory
mkdir /usr/local/mysql
Two 、 download mysql8.0
Switch mysql Catalog
cd /usr/local/mysql
download
wget https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
3、 ... and 、 install mysql
Execution and installation
yum -y localinstall mysql80-community-release-el7-1.noarch.rpm
yum install mysql-community-server
Four 、 start-up mysql service
systemctl start mysqld
5、 ... and 、mysql Service starts automatically
systemctl enable mysqld
systemctl daemon-reload
6、 ... and 、 password
Get the default password
grep 'temporary password' /var/log/mysqld.log
Change Password
ALTER USER 'root'@'localhost' IDENTIFIED BY ' Your password ( Include case 、 Numbers and special characters )';
The password setting requirements here are strict , Otherwise, an error will be reported ;
If you think the password is too complicated , You can modify the limit parameters , View the limit parameter command
SHOW VARIABLES LIKE 'validate_password%';
Modify the order
set global validate_password.length=4;
set global validate_password.policy=LOW;
wait , What to modify , According to your own needs
validate_password_length Total fixed length password ;
validate_password_dictionary_file Specify the file path for password verification ;
validate_password_mixed_case_count The whole password should contain at least large / The total number of lowercase letters ;
validate_password_number_count The whole password must contain at least the number of Arabic numerals ;
validate_password_policy Specify the strength verification level of the password , The default is MEDIUM;
7、 ... and 、 Authorize remote login
Create user
CREATE USER 'root'@'%' IDENTIFIED BY ' The password set above ';
to grant authorization
GRANT ALL ON *.* TO 'root'@'%' WITH GRANT OPTION;
8、 to update root password
It needs to be updated here root password , Otherwise, when you connect to the database, you will report 2058 error ;
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY ' The password set above ';
9、 Port settings
Check the port
show global variables like 'port';
Modify the port
1、 edit /etc/my.cnf file [[email protected] ~]# vi /etc/my.cnf 2、 add to port=2032; 3、 restart mysql [[email protected] ~]# /etc/init.d/mysqld restart
边栏推荐
- Adobe Premiere基础-常用的视频特效(边角定位,马赛克,模糊,锐化,手写工具,效果控件层级顺序)(十六)
- Adobe Premiere foundation - time remapping (10)
- 【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍
- Application and practice of DDD in domestic hotel transaction -- Theory
- js文本粒子动态背景
- 6.29模拟赛总结
- 踩坑记:JSON.parse和JSON.stringify
- Adobe Premiere基础-时间重映射(十)
- Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
- Adobe Premiere基础-批量素材导入序列-变速和倒放(回忆)-连续动作镜头切换-字幕要求(十三)
猜你喜欢
报错Failed to allocate graph: MYRIAD device is not opened.
Yolov6+tensorrt+onnx: deployment based on win10+tensorrt8+yolov6+onnx
Application and practice of DDD in domestic hotel transaction -- Theory
idea怎么使用?
JWT登录验证
数据仓库模型分层ODS、DWD、DWM实战
JDBC knowledge
C comparison of the performance of dapper efcore sqlsugar FreeSQL hisql sqlserver, an ORM framework at home and abroad
Apache InLong百万亿级数据流处理
Cannot retrieve repository metadata 处理记录
随机推荐
markdown常用字体
2022.6.29-----leetcode. five hundred and thirty-five
Adobe Premiere Basics - common video effects (cropping, black and white, clip speed, mirroring, lens halo) (XV)
VMware installation esxi
6.29模拟赛总结
【日常训练】535. TinyURL 的加密与解密
Precondition end of script headers or end of script output before headers
535. encryption and decryption of tinyurl / Jianzhi offer II 103 Minimum number of coins
Sd6.22 summary of intensive training
Interview question 10.10 Rank of digital stream
美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控
Failed to allocate graph: myriad device is not opened
Adobe Premiere基础-编辑素材文件常规操作(脱机文件,替换素材,素材标签和编组,素材启用,便捷调节不透明度,项目打包)(十七)
AMAZING PANDAVERSE:META”无国界,来2.0新征程激活时髦属性
My first experience of remote office | community essay solicitation
PostgreSQL database system table
关于微服务
工作流模块Jar包启动报错:liquibase – Waiting for changelog lock….
Image feature computation and representation -- content based image retrieval
Amazing pandaverse:meta "borderless, to activate fashion attributes in the new journey of 2.0