当前位置:网站首页>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 .


边栏推荐
- SWT/ANR问题--SWT 导致 kernel fuse deadlock
- Experience of practical learning of Silicon Valley products
- STM32F030F4驱动TIM1637数码管芯片
- 实在RPA:银行数字化,业务流程自动化“一小步”,贷款审核效率“一大步”
- dat.GUI
- 玻璃马赛克
- Commemorate becoming the first dayus200 tripartite demo contributor
- 2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
- Redis~02 cache: how to ensure data consistency in MySQL and redis when updating data?
- CADD course learning (3) -- target drug interaction
猜你喜欢

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received

Airserver latest win64 bit personal screen projection software

You probably haven't noticed the very important testing strategy in your work

神经网络物联网的未来趋势与发展

win 10 mstsc连接 RemoteApp

SWT/ANR问题--SWT 导致 kernel fuse deadlock

MySQL binlog cleanup

What is the mosaic tailgate?

Redis数据类型和应用场景

Some abilities can't be learned from work. Look at this article, more than 90% of peers
随机推荐
Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
马赛克后挡板是什么?
[micro service sentinel] @sentinelresource details
CKS CKA ckad change terminal to remote desktop
RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"
The digital summit is popular, and city chain technology has triggered a new round of business transformation
转行软件测试,知道这四点就够了!
YOGA27多维一体电脑,兼具出色外观与高端配置
MySQL binlog cleanup
神经网络物联网的发展趋势和未来方向
flutter Unable to load asset: assets/images/888.png
mysql ---- Oracle中的rownum转换成MySQL
2022 crane driver (limited to bridge crane) examination questions and simulation examination
Jielizhi Bluetooth headset quality control and production skills [chapter]
证券开户选哪个证券公司比较好,哪个更安全
flutter Unable to load asset: assets/images/888. png
从第三次技术革命看企业应用三大开发趋势
Advanced skills of testers: a guide to the application of unit test reports
Switch to software testing, knowing these four points is enough!
共享电商的背后: 共创、共生、共享、共富,共赢的共富精神