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

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

封装、继承、多态的联合使用实现不同等级学生分数信息的统计

c#之winform(软件开发)

相似文本聚类与调参

两款移相振荡器的对比

【WeChat Mini Program】Social Internship Production Project for Information Management and Information System Major--Trash Fingerprint

MySQL性能指标TPS\QPS\IOPS如何压测?

【LeetCode】38、外观数列
![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

metaRTC5.0新版本支持mbedtls(PolarSSL)
随机推荐
router---Programmatic navigation
C# 动态加载卸载 DLL
odoo15 大部分模块都用的附件整理成一独立模块
oracle+RAC+linux5.1所需要安装的包
odoo13笔记点
内存定位利器-ASAN使用小结
Install mysql on k8s
让Web页面中的编辑器支持黏贴或直接拖拽来添加图片「建议收藏」
[Niu Ke brush questions-SQL big factory interview questions] NO5. Analysis of a treasure store (e-commerce model)
Keycloak 6.0.0 正式发布,身份和访问管理系统
座舱人机交互「暗潮汹涌」,语音「下」,多模态「上」
橄榄枝大课堂APP正式启动上线
【WeChat Mini Program】Social Internship Production Project for Information Management and Information System Major--Trash Fingerprint
2042. 检查句子中的数字是否递增-力扣双百代码-设置前置数据
router---Route guard
阴影初始化【5】
大势所趋之下的nft拍卖,未来艺术品的新赋能
漏洞复现 - - - Alibaba Nacos权限认证绕过
Niuke.com Brush Question Record || Linked List
JSX使用