当前位置:网站首页>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.rpm
rpm -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
边栏推荐
猜你喜欢
Is the code more messy?That's because you don't use Chain of Responsibility!
从理论到实践:MySQL性能优化和高可用架构,一次讲清
【毕设选题推荐】机器人工程专业毕设选题推荐
烂大街的缓存穿透、缓存击穿和缓存雪崩,你真的懂了?
Is there a replacement for the LM2596?LM2576 can
开放麒麟 openKylin 版本规划敲定:10 月发布 0.9 版并开启公测,12 月发布 1.0 版
【LeetCode】38、外观数列
【牛客刷题-SQL大厂面试真题】NO5.某宝店铺分析(电商模式)
将 Sentinel 熔断限流规则持久化到 Nacos 配置中心
自监督学习未来是掩码自编码器?KAIST最新《自监督学习掩码自编码器》研究进展
随机推荐
Is there a replacement for the LM2596?LM2576 can
Win11快速助手在哪里?Win11打开快速助手的方法
Programmer Qixi Gift - How to quickly build an exclusive chat room for your girlfriend in 30 minutes
This article sorts out the development of the main models of NLP
odoo13 note point
九州云出席领航者线上论坛,共话5G MEC边缘计算现状、挑战和未来
nVisual secondary development - Chapter 2 nVisual API operation guide Swagger use
Cockpit human-computer interaction "undercurrent", voice "down", multi-modal "up"
MPLS实验
文字编码 - Markdown 简明教程
odoo13笔记点
SMART S7-200PLC串行自由口通讯(耐压测试仪)
文字编码 - XML 教程
LeetCode 1403 非递增顺序的最小子序列[贪心] HERODING的LeetCode之路
如何查找endnote文献中pdf文件的位置
FreeConfig.h文件
开发者独立搭建一个跨模态搜索应用有多难?
Why don't young people like to buy Mengniu and Yili?
postgre 支持 newsql 特性可行性有多大?
leetcode 48. Rotate Image (Medium)