当前位置:网站首页>[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!!
边栏推荐
猜你喜欢
随机推荐
20220729 Securities, Finance
CF603E Pastoral Oddities
权威推荐!腾讯安全DDoS边缘安全产品获国际研究机构Omdia认可
重保特辑|筑牢第一道防线,云防火墙攻防演练最佳实践
干货分享:小技巧大用处之Bean管理类工厂多种实现方式
【VMware虚拟机安装mysql5.7教程】
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
R语言筛选时间序列数据的子集(subset time series data)、使用window函数筛选连续日期时间范围内的数据(start参数和end参数分别指定起始和结束时间)
MQTT网关读取西门子PLC数据传输到阿里云平台案例教程
CF780G Andryusha and Nervous Barriers
Study Notes - Becoming a Data Analyst in Seven Weeks "Week 2: Business": Business Analysis Metrics
jsArray array copy method performance test 2207300823
C语言学习练习题:汉诺塔(函数与递归)
Parallelized Quick Sort Ideas
ENVI图像处理(6):NDVI和植被指数
434. 字符串中的单词数
【软考软件评测师】基于规则说明的测试技术上篇
群晖系统安装相关文件分享
jsArray array copy method performance test 2207292307
一本通循环结构的程序设计题解(2)