当前位置:网站首页>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 '新密码'
边栏推荐
- v-on的修饰符
- Common methods of JS array
- El form special character verification
- Self encapsulated stylized switch card assembly
- nmap和nikto扫描
- How to install the pagoda panel on the server? (pagoda panel installation tutorial)
- Page layout - three column layout solution
- NFT 分化趋势已显,如何捕获价值?
- 数字藏品NFT那个平台好
- v-cloak与v-bind绑定class
猜你喜欢
随机推荐
无数次踩坑安装AWVS
04_ Understand MVVM
NFT-数字藏品之库里为何花116万买一个NFT头像?回顾NFT头像的“发迹史”或许能找到答案
今天的码农女孩做了关于生命周期的笔记以及动态时钟的练习
Use leaflet to copy the original shentiwa Mega map to make a diary
Modifier of v-on
04-BTC-实现
Array Operations - judgment, de duplication, consolidation, expansion
普通异步发送代码编写
computed和watch、watchEffect
Basic use of promise
Differences between let and const, let, const and VaR
Uni app wechat applet - Mall (7) - Product Details
10 完成一半题目
The difference between let and VaR
同学们 小组作业记得别抄哈 幸好只传了两道题 不要出事了
05 BTC network
Router and keep alive
Timestamp conversion time
07-BTC-挖矿



![[AHU2021校内赛] ez-injection](/img/44/644c27f86cbbc9c6630249d2111066.png)





