当前位置:网站首页>Mysql 安装(rpm包方式)
Mysql 安装(rpm包方式)
2022-07-17 00:08:00 【weixin_44815878】
Mysql数据库版本:5.7.16
1、查看是否有冲突的依赖包
ps -ef |grep maridb 查询出来的卸载即可。
2、数据库安装顺序:
rpm -ivh mysql-community-libs-5.7.16-1.el7.x86_64
rpm -ivh mysql-community-common-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.16-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.16-1.el7.x86_64.rpm
3、启动数据库
systemctl start mysqld
4、查看初始化数据库密码
cat /var/log/mysqld.log | grep password

5、 初始化数据库密码之前,首先需要设置密码的验证强度等级
输入设值语句 “ set global validate_password_policy=LOW; ” 进行设值
当前密码长度为 8 ,如果不介意的话就不用修改了,按照通用的来讲,设置为 6 位的密码
输入设值语句 “ set global validate_password_length=6; ” 进行设值,
6、初始化密码
mysqladmin -uroot '初始化密码' passworkd '新密码'
边栏推荐
- Introduction to software vulnerability analysis (4)
- Uni block button multiple clicks button multiple clicks
- iptables和snort基本配置
- v-cloak与v-bind绑定class
- router和keep-alive
- TCP and UDP, TCP server and client, UDP server and client
- Cento7安装mysql5.5以及升级5.7
- Differences between let and const, let, const and VaR
- CheckPoint and DataNode
- 软件漏洞分析入门(四)
猜你喜欢

nmap和nikto扫描

数字藏品NFT“无聊猿”BAYC的内忧与外患

软件漏洞分析入门(一)

面试官问:Redis 突然变慢了如何排查?

How to install the pagoda panel on the server? (pagoda panel installation tutorial)

What is the QS module?

TCP and UDP, TCP server and client, UDP server and client

06 BTC mining difficulty

Uni app wechat applet - Mall (8) - order details

04-BTC-实现
随机推荐
Express项目创建以及其路由介绍
使用redis - zset做排行榜
DHFS读写流程
iptables和snort基本配置
普通异步发送代码编写
Use leaflet to copy the original shentiwa Mega map to make a diary
我已经妥协了 大家既然都要叫我yelin 那我也没办法了
9 无人机方阵
let和const、let、const和var的区别
04_ Understand MVVM
08 BTC bifurcation
今天的码农女孩学习了关于事件操作和ref属性的笔记并做了表单双向绑定的练习
Uni canvas intercepts pictures
文章不会一直保持VIP收费 过一段时间 会开放
06 BTC mining difficulty
软件漏洞分析入门(二)
Nmap and Nikto scanning
ipfs 文件持久化操作
07_ Basic use of events
Cento7安装mysql5.5以及升级5.7