当前位置:网站首页>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/mysqlTwo 、 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 mysqld5、 ... and 、mysql Service starts automatically
systemctl enable mysqld
systemctl daemon-reload6、 ... and 、 password
Get the default password
grep 'temporary password' /var/log/mysqld.logChange 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
边栏推荐
- Detailed analysis on the use of MySQL stored procedure loop
- Markdown common fonts
- Markdown knowledge comes gently
- 美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控
- Adobe Premiere Basics - common video effects (corner positioning, mosaic, blur, sharpen, handwriting tools, effect control hierarchy) (16)
- Know that Chuangyu has helped the energy industry in asset management and was selected into the 2021 IOT demonstration project of the Ministry of industry and information technology
- Programmer Resource Recommendation Guide
- WBF: new method of NMS post filter frame for detection task?
- 【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
- Adobe Premiere基础-编辑素材文件常规操作(脱机文件,替换素材,素材标签和编组,素材启用,便捷调节不透明度,项目打包)(十七)
猜你喜欢

Adobe Premiere foundation - batch material import sequence - variable speed and rewind (recall) - continuous action shot switching - subtitle requirements (13)

Adobe Premiere foundation - sound adjustment (volume correction, noise reduction, telephone tone, pitch shifter, parameter equalizer) (XVIII)

svg画圆路径动画

jdbc_ Related codes

Travel card "star picking" hot search first! Stimulate the search volume of tourism products to rise

《安富莱嵌入式周报》第271期:2022.06.20--2022.06.26
![报错[warning] Neural network inference was performed on socket ‘RGB’, depth frame is aligned to socket](/img/8a/ebad75daa581e22d50dddde49e1fac.jpg)
报错[warning] Neural network inference was performed on socket ‘RGB’, depth frame is aligned to socket

Precondition end of script headers or end of script output before headers

Amazing pandaverse:meta "borderless, to activate fashion attributes in the new journey of 2.0

Fluent's MSH grid learning
随机推荐
【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍
SD6.24集训总结
Cannot retrieve repository metadata 处理记录
MySQL 企业级开发规范
如何将OAK相机当做网络摄像头使用?
Sd6.24 summary of intensive training
WBF:检测任务NMS后虑框新方式?
shell教程之循环语句for,while,until用法
Shell tutorial circular statements for, while, until usage
Application and practice of DDD in domestic hotel transaction -- Theory
Adobe Premiere基础-编辑素材文件常规操作(脱机文件,替换素材,素材标签和编组,素材启用,便捷调节不透明度,项目打包)(十七)
第八届“互联网+”大赛 | 云原生赛道邀你来挑战
熊猫跑酷js小游戏代码
jdbc_相关代码
Record that the server has been invaded by viruses: the SSH password has been changed, the login fails, the malicious program runs full of CPU, the jar package fails to start automatically, and you ha
Sd6.23 summary of intensive training
Failed to allocate graph: myriad device is not opened
报错Failed to allocate graph: MYRIAD device is not opened.
Adobe Premiere foundation - cool text flash (14)
MySql存储过程循环的使用分析详解