当前位置:网站首页>[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!!
边栏推荐
- leetcode207.课程表(判断有向图是否有环)
- qq udp tcp机制
- js背景切换时钟js特效代码
- 重保特辑|筑牢第一道防线,云防火墙攻防演练最佳实践
- 如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
- Hand tearing read-write lock performance test
- R语言使用aov函数进行单因素协方差分析(One-way ANCOVA)、使用effects包中的effect函数来计算调整后的分组均值(calculate adjusted means)
- Raja Koduri澄清Arc GPU跳票传闻 AXG年底前新推四条产品线
- jsArray array copy method performance test 2207292307
- EasyNVS cloud management platform function reconstruction: support for adding users, modifying information, etc.
猜你喜欢
随机推荐
Tutorial on using the one-key upgrade function of the RTSP/Onvif video platform EasyNVR service
Apache Log4j2漏洞
【自校正控制】自校正PID
666666
jsArray数组复制方法性能测试2207300823
Markdown 1 - 图文音视频等
[ARC092B] Two Sequences
“封号斗罗” 程序员修炼之道:通向务实的最高境界
干货分享:小技巧大用处之Bean管理类工厂多种实现方式
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化箱图、width参数自定义箱图中箱体的宽度
shell 编程规范与变量
简单理解精确率(Precision),召回率(Recall),准确率(Accuracy),TP,TN,FP,FN
CF338E Optimize!
域名抢注“卷”到了表情包?ENS逆势上涨的新推力
判断链表是否有环
正确处理页面控制器woopagecontroller.php,当提交表单时是否跳转正确的页面
ML之PDP:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用DT决策树&RF随机森林+PDP部分依赖图可视化实现模型可解释性之详细攻略
机器学习——特征选择
[PostgreSQL] - explain SQL analysis introduction
shell脚本流程控制语句