当前位置:网站首页>[VMware virtual machine installation mysql5.7 tutorial]
[VMware virtual machine installation mysql5.7 tutorial]
2022-07-30 13:40:00 【Chos1JQ】
First go to the mysql official website to download MySQL: Chinese official website
www.mysql.com/cn
Enter the official website and select Download >MYSQL Community (GPL)Downloads > MYSQL Community Server >
Archives and select a version:
Click RPM Bundle download to copy the download link: https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar
Install wget
yum -y install wget
Create a new directory to store
mkdir mysql
cd mysql
Download the rpm package (the installation package suffix is tar)
sudo wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.36-1.el7.x86_64.rpm-bundle.tarj
Unzip the file
tar -xvf mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar
Query mariabd package
rpm -e --nodeps
Dependencies
yum -y install perl
yum -y install net-tools
Install 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
Start Mysql service
Systemctl start mysqld
Systemctl status mysqld
View password valid results
cat /var/log/mysqld.log | grep password
Set password policy
Modify: password minimum length
set global validate_password_length = 6;
Modify: Password Strength Check Level Policy
set global validate_password_policy=0;
Change password
set password for 'root'@'localhost'=password('188266');
Open the mysql root user remote connection service (% sign is the remote connection, the password followed by IDENTIFIED BY)
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '188266' WITH GRANT OPTION;
Remember to refresh at the end:
flush privileges;
Now that the installation is complete, hurry up and deploy the project!!
边栏推荐
猜你喜欢
el-table中el-table-column下的操作切换class样式
OFDM 十六讲 3- OFDM Waveforms
“封号斗罗” 程序员修炼之道:通向务实的最高境界
ENVI Image Processing (6): NDVI and Vegetation Index
二手手机销量突破3亿部,与降价的iPhone夹击国产手机
权威推荐!腾讯安全DDoS边缘安全产品获国际研究机构Omdia认可
Study Notes - Becoming a Data Analyst in Seven Weeks "Week 2: Business": Business Analysis Metrics
SyntaxError: EOL while scanning string literal
电池包托盘有进水风险,存在安全隐患,紧急召回52928辆唐DM
重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
随机推荐
如何把Excel表格显示到邮件正文里?
R语言ggstatsplot包grouped_ggwithinstats函数可视化分组小提琴图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)
【自校正控制】自校正PID
如何判断自己是否适合IT行业?方法很简单
dolphinscheduler adds hana support
R语言使用aov函数进行单因素协方差分析(One-way ANCOVA)、使用effects包中的effect函数来计算调整后的分组均值(calculate adjusted means)
戴墨镜的卡通太阳SVG动画js特效
leetcode207.课程表(判断有向图是否有环)
阿里 P7 到底是怎样的水平?
二手手机销量突破3亿部,与降价的iPhone夹击国产手机
Hand tearing read-write lock performance test
Markdown 1 - 图文音视频等
缓存一致性
一本通循环结构的程序设计题解(2)
20220729 证券、金融
Current and voltage acquisition module DAM-6160
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化箱图、width参数自定义箱图中箱体的宽度
Mac Brew 安装PHP
湖仓一体电商项目(一):项目背景和架构介绍
jsArray数组复制方法性能测试2207292307