当前位置:网站首页>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] index creation, viewing and deletion
- What is the mosaic tailgate?
- Jerry's question about long press boot detection [chapter]
- Business visualization - make your flowchart'run'up
- 从第三次技术革命看企业应用三大开发趋势
- 距离度量 —— 汉明距离(Hamming Distance)
- Airserver latest win64 bit personal screen projection software
- [kotlin third party] coil koltin collaboration picture loading library coil glide like picture loading third party
- 众昂矿业:发展以氟化工为主的特色化工产业具有先天优势
猜你喜欢

【微服务|Sentinel】sentinel整合openfeign

【嵌入式系统课设】单个按键控制LED灯

问题随记 —— file /usr/share/mysql/charsets/README from install of MySQL-server-5.1.73-1.glibc23.x86_64 c

Programming English vocabulary notebook

from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘

Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?

认识--Matplotlib

Yoga27 multidimensional all-in-one computer with excellent appearance and high-end configuration
![[applet] realize the left and right [sliding] list through the scroll view component](/img/18/b1b4e9923782856143721dad84cbab.png)
[applet] realize the left and right [sliding] list through the scroll view component

CKS CKA CKAD 将终端更改为远程桌面
随机推荐
Zhao Fuquan: to ensure supply in the short term, we should build a safe, efficient and resilient supply chain in the long term
Experience of practical learning of Silicon Valley products
物联网现状及未来发展趋势
每日三题 6.30(2)
plain framework的实际应用和扩展
日本购物网站的网络乞丐功能
用JpaTransactionManager操作数据库事务
Summary of "performance testing" of software testing, novice will know the knowledge points on the road
OpenVINO 模型性能评估工具—DL Workbench
Aaai22 | structural tagging and interaction modeling: a "slim" network for graph classification
Stm32f030f4 drives tim1637 nixie tube chip
[MySQL] index creation, viewing and deletion
Detailed explanation of twenty common software testing methods (the most complete in History)
Compare the version number [double pointer to intercept the string you want]
2022年起重机司机(限桥式起重机)考试试题及模拟考试
JS - use of arguments
[micro service sentinel] @sentinelresource details
【微服务|Sentinel】sentinel整合openfeign
Understanding threads
Redis数据类型和应用场景