当前位置:网站首页>centos7安装mysql急速版
centos7安装mysql急速版
2022-08-04 13:52:00 【我要用代码向我喜欢的女孩表白】
目录
离线安装
2个文件 丢到/software目录下
检查是否有mysql
rpm -qa|grep -i mysql
检查是否安装(没有安装过mysql,可以跳过)
有的话,卸载
rpm -e --nodeps mysql-libs-你刚刚自己查的包
yum remove mysql mysql-server mysql-libs mysql-server;
rpm -e --nodeps pcp-pmda-mysql-3.10.6-2.el7.x86_64如果提示没有perl,则安装(可用本地离线镜像源)Centos7,离线yum源下载,搭建_我要用代码向我喜欢的女孩表白的博客-CSDN博客_centos7yum源下载
yum install -y perl-Module-Install.noarch
清除缓存的相关包
yum remove mysql-libs
yum remove mariadb-libs
进入目录解压
tar -xvf mysql-5.7.31-1.el7.x86_64.rpm-bundle.tar
按顺序,一行一行的跑
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
粘贴你的密码yc(.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
后续和离线一样
边栏推荐
- postgre 支持 newsql 特性可行性有多大?
- 2546 饭卡(01背包,挺好的)
- 《中国综合算力指数》《中国算力白皮书》《中国存力白皮书》《中国运力白皮书》在首届算力大会上重磅发出
- MogDB/openGauss 3.0 扩容及缩容
- "Social Enterprises Conducting Civilian Personnel Training Specifications" group standard on the shelves of Xinhua Bookstore
- sqlplus报错ORA-12547: TNS:lost contact解决
- 【牛客刷题-SQL大厂面试真题】NO5.某宝店铺分析(电商模式)
- C# 复制列表
- k8s上安装mysql
- AVR学习笔记之熔丝位
猜你喜欢
一文梳理NLP主要模型发展脉络
leetcode 48. Rotate Image 旋转图像(Medium)
idea永久激活教程(新版)
GeoAO:一种快速的环境光遮蔽方案
Win11勒索软件防护怎么打开?Win11安全中心勒索软件防护如何设置
This article sorts out the development of the main models of NLP
《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架
AutoCAD DWG,DXF文件导出高清图片、PDF
Button control switch 4017 digital circuit chip
从理论到实践:MySQL性能优化和高可用架构,一次讲清
随机推荐
中大型商业银行堡垒机升级改造就用行云管家!必看!
router---mode
Utility function---string processing
干掉visio,这个画图神器真的绝了
按键控制开关4017芯片数字电路
如何才能有效、高效阅读?猿辅导建议“因材因时施教”
信创是什么意思?涉及哪些行业?为什么要发展信创?
面试官:说一下NIO和BIO的区别
橄榄枝大课堂APP正式启动上线
Is the code more messy?That's because you don't use Chain of Responsibility!
汉诺塔怎么玩
ssm learning experience (final chapter)
字符串类的设计与实现_C语言字符串编程题
智能电视可以打开小程序应用,再也不用头痛内存了
Haproxy搭建web群集
k8s上安装mysql
谁说 Mysql 单表最大 2000 W ?我硬要塞它 1 个亿
c#之winform(软件开发)
文字编码 - Markdown 简明教程
odoo15 大部分模块都用的附件整理成一独立模块