当前位置:网站首页>Linux foundation - centos7 offline installation of MySQL
Linux foundation - centos7 offline installation of MySQL
2022-07-01 23:22:00 【Fanyi】
Big data series articles : Catalog
One 、 Preparation before installation
1. MySQL rpm Package preparation
① open MySQL The download page , Choose the version you want
- MySQL Download page links :https://dev.mysql.com/downloads/mysql/
- Alibaba cloud MySQL Mirror image ( recommend ):https://mirrors.aliyun.com/mysql/?spm=a2c6h.13651104.0.0.712126b0xBBqsR
② Find the version you want to install , Click download .
2. CentOS7 Environmental preparation
The detailed installation method can be seen below :
Content | link |
---|---|
CentOS install | Build a big data environment —— CentOS install |
3. XShell And Xftp
The white whoring process can be seen below :
Content | link |
---|---|
Tool acquisition — XShell | Linux Basics —— XShell Get the guide for free |
Two 、 Start installation
1. uninstall MySQL
For the sake of insurance , Prevent previously installed MySQL And now MySQL Conflict , Just uninstall it first MySQL.
① see MySQL rely on
rpm -qa | grep mysql
If you find anything , To uninstall in the next step , without , No need .
② uninstall MySQL
rpm -e --nodeps `rpm -qa | grep mysql`
2. send out MySQL Install the package on the node host
① establish ftp Connect
Use here sftp
The protocol transfers the file to the node , open xftp
, Fill in information , Building links .
② Send the installation package file
take MySQL Drag the installation package to the directory you want to put .
3. install MySQL Installation package
cd
Enter the installation directory , install MySQL Installation package .
# rpm -ivh + Package name
rpm -ivh MySQL-server-5.1.73-1.glibc23.x86_64.rpm
rpm -ivh MySQL-client-5.1.73-1.glibc23.x86_64.rpm
3、 ... and 、 Simple configuration
1. Configure boot up
service mysql start
chkconfig mysql on
2. modify MySQL password
Because what is installed here is 5.6 The following versions , The following operations are only for 5.6 The following versions are available
① Input mysql
Get into MySQL
mysql
② Operate the database to change the password
use mysql; # Switch database
user set password=password('123456') where user='root' and host='localhost'; # Change the password to 123456
flush privileges # Configuration takes effect
exit # sign out MySQL
3. Configure to allow remote access
use mysql; # Switch database
update user set host = '%' where user = 'root'; # Configure to allow remote host access root
flush privileges # Configuration takes effect
If an error is reported, it can be ignored , Query again user
surface , Will find %
Is added .
边栏推荐
- mysql ---- Oracle中的rownum转换成MySQL
- SWT/ANR问题--SWT 导致 kernel fuse deadlock
- Convergence and disposal suggestions of some Internet exposure surfaces
- 【微服务|Sentinel】SentinelResourceAspect详解
- MySQL binlog cleanup
- Istio、eBPF 和 RSocket Broker:深入研究服务网格
- Linux基础 —— CentOS7 离线安装 MySQL
- 2022年R1快开门式压力容器操作考题及答案
- 2022安全员-C证考试题模拟考试题库及模拟考试
- 每日三题 6.29
猜你喜欢
【嵌入式系统课设】单个按键控制LED灯
会声会影2022智能、快速、简单的视频剪辑软件
flutter Unable to load asset: assets/images/888. png
Redis data types and application scenarios
AirServer最新Win64位个人版投屏软件
Copy ‘XXXX‘ to effectively final temp variable
The digital summit is popular, and city chain technology has triggered a new round of business transformation
Some abilities can't be learned from work. Look at this article, more than 90% of peers
Commemorate becoming the first dayus200 tripartite demo contributor
Zhongang Mining: it has inherent advantages to develop the characteristic chemical industry dominated by fluorine chemical industry
随机推荐
Is it safe to choose mobile phone for stock trading account opening in Shanghai?
【Swoole系列1】在Swoole的世界中,你将学习到什么?
What is the mosaic tailgate?
"35 years old, the boss of the company, with a monthly salary of 20000, give away takeout": the times abandoned you, not even saying goodbye
Typescript enumeration
纪念成为首个DAYUs200三方demo贡献者
js——arguments的使用
91. (cesium chapter) cesium rocket launch simulation
硅谷产品实战学习感触
JS - use of arguments
window10安装wsl(一)(WslRegisterDistribution ERROR)
马赛克后挡板是什么?
通过Go语言创建CA与签发证书
2022 safety officer-c certificate examination question simulation examination question bank and simulation examination
STM32F030F4驱动TIM1637数码管芯片
赵福全:短期解决保供,长期要打造安全、高效有韧性的供应链
距离度量 —— 汉明距离(Hamming Distance)
Linux基础 —— CentOS7 离线安装 MySQL
Practical application and extension of plain framework
Zhongang Mining: it has inherent advantages to develop the characteristic chemical industry dominated by fluorine chemical industry