当前位置:网站首页>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
边栏推荐
猜你喜欢

Execution failed for task ‘:xxx:generateReleaseRFile‘.

《C 陷阱与缺陷 》阅读概要

How to play the Tower of Hanoi
![LeetCode 1403 Minimum subsequence in non-increasing order [greedy] HERODING's LeetCode road](/img/fd/c827608b96f678a67c7e920c51d8c5.png)
LeetCode 1403 Minimum subsequence in non-increasing order [greedy] HERODING's LeetCode road

SLAM 05.视觉里程计-2-特征法

AVR学习笔记之熔丝位

如何查找endnote文献中pdf文件的位置

MPLS experiment
![[UML] Summary of Information System Analysis and Design Knowledge Points](/img/a2/32267c5bfdf8114c4c723278a1897c.png)
[UML] Summary of Information System Analysis and Design Knowledge Points

浙江大学团队使用基于知识图谱的新方法,从空间分辨转录组数据中推断细胞间通信状况
随机推荐
量化细胞内的信息流:机器学习时代下的研究进展
文字编码 - XML 教程
LM2596有没有可以替代的?LM2576可以
Interviewer: How to view files containing abc string in /etc directory?
如何通过使用“缓存”相关技术,解决“高并发”的业务场景案例?
【无标题】
SMART S7-200PLC串行自由口通讯(耐压测试仪)
华为手机切换屏幕效果_华为p40页面切换效果怎么换
编程思想_编程有必要给孩子学吗?
CReFF缓解长尾数据联邦学习(IJCAI 2022)
Map常见的遍历方式-keySet 和 entrySet
PAT甲级:1040 Longest Symmetric String
信创是什么意思?涉及哪些行业?为什么要发展信创?
一文梳理NLP主要模型发展脉络
Script to get local IP address
router---模式
AlphaFold 如何实现 AI 在结构生物学中的全部潜力
考研上岸又转行软件测试,从5k到13k完美逆袭,杭州校区小哥哥拒绝平庸终圆梦!
化算力为战力:宁夏中卫的数字化转型启示录
C# 动态加载卸载 DLL