当前位置:网站首页>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
边栏推荐
猜你喜欢
开放麒麟 openKylin 版本规划敲定:10 月发布 0.9 版并开启公测,12 月发布 1.0 版
按键控制开关4017芯片数字电路
节省50%成本!京东云重磅发布新一代混合CDN产品
秋招攻略秘籍,吃透25个技术栈Offer拿到手软
"C pitfalls and pitfalls" reading summary
将 Sentinel 熔断限流规则持久化到 Nacos 配置中心
Is the code more messy?That's because you don't use Chain of Responsibility!
【LeetCode】38、外观数列
浙江大学团队使用基于知识图谱的新方法,从空间分辨转录组数据中推断细胞间通信状况
Execution failed for task ‘:xxx:generateReleaseRFile‘.
随机推荐
AlphaFold 如何实现 AI 在结构生物学中的全部潜力
router---Programmatic navigation
七夕邂逅爱,那人一定在
How to find the location of a pdf file in endnote literature
LM2596有没有可以替代的?LM2576可以
工具函数---字符串处理
PAT甲级:1038 Recover the Smallest Number
汉诺塔怎么玩
php中的ceil和floo以及round函数「建议收藏」
《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架
MySQL【触发器】
《中国综合算力指数》《中国算力白皮书》《中国存力白皮书》《中国运力白皮书》在首届算力大会上重磅发出
BZOJ 1798 维护序列 (多校连萌,对线段树进行加乘混合操作)
eyb:JWT介绍
router---路由守卫
Oracle RAC环境下vip/public/private IP的区别
如何才能有效、高效阅读?猿辅导建议“因材因时施教”
南瓜科学产品升级 开启益智探索新篇章
七夕当然要学会SQL优化好早点下班去找对象
封装、继承、多态的联合使用实现不同等级学生分数信息的统计