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

代码越写越乱?那是因为你没用责任链!

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

Analysis and application of portrait segmentation technology

zabbix自定义图形

leetcode 48. Rotate Image 旋转图像(Medium)

《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架

开发者独立搭建一个跨模态搜索应用有多难?

相似文本聚类与调参

Interviewer: How to view files containing abc string in /etc directory?

MySQL【窗口函数】【共用表表达式】
随机推荐
odoo15 大部分模块都用的附件整理成一独立模块
2042. 检查句子中的数字是否递增-力扣双百代码-设置前置数据
记录都有哪些_js常用方法总结
ICML 2022 | 图神经网络的局部增强
Script to get local IP address
Is the code more messy?That's because you don't use Chain of Responsibility!
大势所趋之下的nft拍卖,未来艺术品的新赋能
七夕邂逅爱,那人一定在
汉诺塔怎么玩
关于redis的几件小事(五)redis保证高并发以及高可用
企业应当实施的5个云安全管理策略
【LeetCode】1403. 非递增顺序的最小子序列
文字编码 - XML 教程
第六届未来网络发展大会,即将开幕!
九州云出席领航者线上论坛,共话5G MEC边缘计算现状、挑战和未来
zabbix自定义图形
【WeChat Mini Program】Social Internship Production Project for Information Management and Information System Major--Trash Fingerprint
七夕当然要学会SQL优化好早点下班去找对象
节省50%成本!京东云重磅发布新一代混合CDN产品
State security organs conduct criminal arrest and summons review on Yang Zhiyuan, a suspect suspected of endangering national security