当前位置:网站首页>Upgrade centos7 mysql5.5 to mysql5.7 non RPM in the form of tar package
Upgrade centos7 mysql5.5 to mysql5.7 non RPM in the form of tar package
2022-06-30 14:25:00 【mizuhokaga】
1. demand
install DataSphereStudio, Requirements in the document mysql5.5+, Measure the of the machine 5.5.47 Can't install , Reason reference Last blog
Need to put mysql Upgrade to 5.7 edition .
Before the machine, the compressed package was installed directly mysql5.5,yum update You can't upgrade . So use the compressed package to upgrade
2. step
-1. Stop mysql service
serivce mysqld stop
download 5.7 Compressed package ,centos7 Next linux General purpose is OK https://dev.mysql.com/downloads/mysql/5.7.html#downloads

Before backup 5.5 The library in the library ,dump There are many ways to do this, so I won't make a fool of myself
decompression 5.7, Before my mysql5.5 The name of the folder is mysql, The name was changed to... For the sake of distinction mysql55.5.7 The unzipped folder is renamed mysql. In this 5.7 Renamed mysql New under folder data Folder .
Get into 5.7 Of bin Folder , Carry out orders ,basedir Change to yourself mysql The path of
bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --dat/mysql/data/

- mysql5.7 An initialization password is generated ,cat to glance at
cat /root/.mysql_secret
mysql -u root -p Sign in , The password is from the previous step

Use the command to cut the library , Prompt error: you must reset the password to alter The way
ALTER USER USER() IDENTIFIED BY ‘a’;

7. Add remote access , Remember to restart mysql
- use mysql;
- update user set host = ‘%’ where user = ‘root’;

dbeaver Link test succeeded !
3. Reference resources
边栏推荐
- org.json.JSONObject对象转json,json新增元素,根据json的key获取值。以及list对象格式字符串转jsonArray
- Use PHP to delete the specified text content in the file
- ctfshow nodejs
- Pit used by go language array type
- Deep understanding Net (2) kernel mode 4 Summary of kernel pattern constructs
- KnightCTF WEB
- 【科研数据处理】[实践]类别变量频数分析图表、数值变量分布图表与正态性检验(包含对数正态)
- Je suis à Foshan, où puis - je ouvrir un compte? L'ouverture d'un compte par téléphone mobile est - elle sécurisée?
- The programming competition is coming! B station surrounding, senior members and other good gifts to you!
- PHP excel export function encapsulation (based on phpexcel class)
猜你喜欢

Heavyweight: the domestic ide was released, developed by Alibaba, and is completely open source!

The first dark spring cup dnuictf
![[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure](/img/5a/5da6180db0b2b96660bcd9b4fa0633.png)
[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure

重磅:国产IDE发布,由阿里研发,完全开源!

Race of golang

Error on datetime when importing SQL file from MySQL

ThinkPHP v3.2 comment annotation injection write shell

Notes on reverse learning in the first week of winter vacation

MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video

【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
随机推荐
Attack and defense world web questions
Laravel artist command error
Go language mutex lock
go channel && select
JS delete the objects in the array and specify to delete the objects
numpy 创建空数组 data = np.empty(shape=[1, 64,64,3])
(8) JMeter component detailed once only controller
More than 20 years after Hong Kong's return, Tupu digital twin Hong Kong Zhuhai Macao Bridge has shocked
从控制层返回到js的json数据带“\”转译符,怎么去掉
Implementation of forwarding server using IO multiplexing
Google Earth engine (GEE) - ghsl: global human settlements layer, built grid 1975-1990-2000-2015 (p2016) data set
Wechat applet realizes map navigation + door-to-door recycling
Mysql database foundation: stored procedures and functions
Use of laravel repository mode
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?
【BUUCTF】 Have Fun
Numpy creates an empty array data = np empty(shape=[1, 64,64,3])
Alipay certificate mode payment interface
I want to ask how to open an account at China Merchants Securities? Is it safe to open a stock account through the link
The programming competition is coming! B station surrounding, senior members and other good gifts to you!