当前位置:网站首页>Centos7 install mysql version rapidly
Centos7 install mysql version rapidly
2022-08-04 14:03:00 【I'm going to use code to confess to the girl I like】
目录
离线安装

2个文件 丢到/software目录下
检查是否有mysql
rpm -qa|grep -i mysql检查是否安装(没有安装过mysql,可以跳过)
有的话,卸载
rpm -e --nodeps mysql-libs-The package you just checked yourself
yum remove mysql mysql-server mysql-libs mysql-server;
rpm -e --nodeps pcp-pmda-mysql-3.10.6-2.el7.x86_64如果提示没有perl,则安装(Available local offline mirror sources)Centos7,离线yum源下载,搭建_我要用代码向我喜欢的女孩表白的博客-CSDN博客_centos7yum源下载
yum install -y perl-Module-Install.noarch
Clear cached related packages
yum remove mysql-libs
yum remove mariadb-libs进入目录解压
tar -xvf mysql-5.7.31-1.el7.x86_64.rpm-bundle.tar按顺序,Run line by line
rpm -ivh mysql-community-common-5.7.31-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.31-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.31-1.el7.x86_64.rpmrpm -ivh mysql-community-server-5.7.31-1.el7.x86_64.rpm
若rpm -ivh mysql-community-server-5.7.31-1.el7.x86_64.rpm 出现问题,否则跳过

则
yum list|grep -i net-tools
yum install net-tools.x86_64
rpm -ivh mysql-community-server-5.7.31-1.el7.x86_64.rpm
启动
systemctl start mysqld.service 启动mysql
systemctl status mysqld.service 查看mysql状态
搜索默认密码
grep 'temporary password' /var/log/mysqld.log
启动mysql -uroot -p
paste your passwordyc(.7n#5mjY?
修改密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'ShiTeacherLoveU~520';
远程授权
grant all privileges on *.* to 'root'@'%' identified by 'ShiTeacherLoveU~520' with grant option;
刷新权限
flush privileges;
在线安装(飞速)
yum install wget
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld.service
netstat -tnlp|grep 3306
查看mysql密码
grep "password" /var/log/mysqld.log
Follow-up is the same as offline
边栏推荐
猜你喜欢
随机推荐
信创是什么意思?涉及哪些行业?为什么要发展信创?
Fuse bit of AVR study notes
router---Route guard
idea permanent activation tutorial (new version)
Execution failed for task ‘:xxx:generateReleaseRFile‘.
How to play the Tower of Hanoi
C# 动态加载卸载 DLL
Interviewer: How to view files containing abc string in /etc directory?
Win11快速助手在哪里?Win11打开快速助手的方法
vcl啥意思_oval
ssm学习心得(完结篇
c#之winform(软件开发)
智能电视可以打开小程序应用,再也不用头痛内存了
"Social Enterprises Conducting Civilian Personnel Training Specifications" group standard on the shelves of Xinhua Bookstore
秋招攻略秘籍,吃透25个技术栈Offer拿到手软
VBS函数应用–getobject的使用获得Automation对象
封装、继承、多态的联合使用实现不同等级学生分数信息的统计
router---编程式导航
php中的ceil和floo以及round函数「建议收藏」
手搓一个“七夕限定”,用3D Engine 5分钟实现烟花绽放效果









