当前位置:网站首页>【VMware虚拟机安装mysql5.7教程】
【VMware虚拟机安装mysql5.7教程】
2022-07-30 13:23:00 【Chos1JQ】
首先到mysql官网下载MySQL:中文官网
www.mysql.com/cn
进入官网选择 下载 >MYSQL Community (GPL)Downloads > MYSQL Community Server >
Archives 然后选择版本 :

点击 RPM Bundle下载将下载地址链接复制:https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar
安装wget
yum -y install wget
新建一个目录存放
mkdir mysql
cd mysql
下载rpm包 (安装包后缀注意是tar)
sudo wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.36-1.el7.x86_64.rpm-bundle.tarj
解压文件
tar -xvf mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar
查询mariabd 包
rpm -e --nodeps
依赖包
yum -y install perl
yum -y install net-tools
安装Mysql
rpm -ivh mysql-community-common-5.7.36-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-5.7.36-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.36-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.36-1.el7.x86_64.rpm
启动Mysql服务
Systemctl start mysqld
Systemctl status mysqld
查看密码有效结果
cat /var/log/mysqld.log | grep password
设置密码策略
修改:密码最小长度
set global validate_password_length = 6;
修改:密码强度检查等级策略
set global validate_password_policy=0;
修改密码
set password for 'root'@'localhost'=password('188266');
开启mysql的root用户远程连接服务(%号即远程连接,IDENTIFIED BY后面跟的密码)
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '188266' WITH GRANT OPTION;
最后一定要记得刷新:
flush privileges;
到此安装完毕赶快部署项目!!
边栏推荐
- ARC115F Migration
- CF1320E Treeland and Viruses
- ENVI Image Processing (6): NDVI and Vegetation Index
- BUUCTF刷题十一道(06)
- jsArray数组复制方法性能测试2207300823
- EasyNVR更新版本至(V5.3.0)后页面不显示通道配置该如何解决?
- Analysis of AI recognition technology and application scenarios of TSINGSEE intelligent video analysis gateway
- TaskDispatcher源码解析
- R语言ggplot2可视化时间序列数据(默认时间中断部分前后自动连接起来)、创建时间分组、使用分面图(faceting)可视化时间序列数据
- Mysql batch insert transaction unique key repeated processing
猜你喜欢
随机推荐
Markdown 3 - 流程图表
for循环的3个表达式执行顺序
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(ylim、修改可视化图像y轴坐标轴数值范围)
Lake storehouse which electricity (2) of the project: project using technology and version and the environment
[PostgreSQL] - 存储结构及缓存shared_buffers
PyQt5快速开发与实战 8.6 设置样式
[PostgreSQL] - Storage structure and cache shared_buffers
学习笔记——七周成为数据分析师《第二周:业务》:业务分析指标
R语言ggpubr包的ggboxplot函数可视化分组箱图、自定义移除可视化图像的特定对象(移除可视化图像轴坐标轴的刻度线标签文本、both x and y axis ticks labels)
Eleven BUUCTF questions (06)
RTSP/Onvif协议视频平台EasyNVR服务一键升级功能的使用教程
人社部公布“数据库运行管理员”成新职业,OceanBase参与制定职业标准
第十三天笔记
ENVI Image Processing (6): NDVI and Vegetation Index
js人均寿命和GDP散点图统计样式
Logic Vulnerability----Permission Vulnerability
Why is Prometheus a monitoring artifact sufficient to replace Zabbix?
Tutorial on using the one-key upgrade function of the RTSP/Onvif video platform EasyNVR service
How to solve the problem that the page does not display the channel configuration after the EasyNVR is updated to (V5.3.0)?
手撕读写锁性能测试









