当前位置:网站首页>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
边栏推荐
- Keycloak 6.0.0 正式发布,身份和访问管理系统
- 秋招攻略秘籍,吃透25个技术栈Offer拿到手软
- 电子行业MES管理系统有哪些特殊功能
- LeetCode 1403 Minimum subsequence in non-increasing order [greedy] HERODING's LeetCode road
- Is the code more messy?That's because you don't use Chain of Responsibility!
- oracle+RAC+linux5.1所需要安装的包
- zabbix自定义图形
- 封装、继承、多态的联合使用实现不同等级学生分数信息的统计
- 17种正则表达式
- AutoCAD DWG,DXF文件导出高清图片、PDF
猜你喜欢

开放麒麟 openKylin 版本规划敲定:10 月发布 0.9 版并开启公测,12 月发布 1.0 版
![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

CCF GLCC正式开营|九州云开源专家携丰厚奖金,助力高校开源推广

"Social Enterprises Conducting Civilian Personnel Training Specifications" group standard on the shelves of Xinhua Bookstore

电子行业MES管理系统有哪些特殊功能

leetcode 48. Rotate Image (Medium)
MySQL性能指标TPS\QPS\IOPS如何压测?
将 Sentinel 熔断限流规则持久化到 Nacos 配置中心

Analysis and application of portrait segmentation technology

Fuse bit of AVR study notes
随机推荐
智能电视可以打开小程序应用,再也不用头痛内存了
postgre 支持 newsql 特性可行性有多大?
2546 饭卡(01背包,挺好的)
阴影初始化【5】
odoo15 大部分模块都用的附件整理成一独立模块
【牛客刷题-SQL大厂面试真题】NO5.某宝店铺分析(电商模式)
橄榄枝大课堂APP正式启动上线
MySQL性能指标TPS\QPS\IOPS如何压测?
c#之winform(软件开发)
metaRTC5.0新版本支持mbedtls(PolarSSL)
封装、继承、多态的联合使用实现不同等级学生分数信息的统计
编程思想_编程有必要给孩子学吗?
如何查找endnote文献中pdf文件的位置
Is the code more messy?That's because you don't use Chain of Responsibility!
How to stress the MySQL performance indicators TPS\QPS\IOPS?
State security organs conduct criminal arrest and summons review on Yang Zhiyuan, a suspect suspected of endangering national security
Utility function---string processing
php中的ceil和floo以及round函数「建议收藏」
router---Programmatic navigation
This article sorts out the development of the main models of NLP