当前位置:网站首页>Alibaba cloud installs mysql5.7
Alibaba cloud installs mysql5.7
2022-07-25 14:19:00 【Get rich on the yard】
One 、 download MySQL Official yum repository
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
Two 、 install rpm package
yum -y install mysql57-community-release-el7-10.noarch.rpm
3、 ... and 、 install MySQL service
yum -y install mysql-community-server
Four 、 start-up MYSQL
systemctl start mysqld.service
5、 ... and 、 see MYSQL state
systemctl status mysqld.service

6、 ... and 、 modify MYSQL password
mysql -u root -p
First boot MySQL after , There will be a temporary password , The default initial password is /var/log/mysqld.log In file , We can use this command to see :
grep “password” /var/log/mysqld.log

Carry out orders
alter user user() identified by "@xxxxx";
Refresh database
flush privileges;
And then quit
exit;
Restart the service
systemctl restart mysqld.service
7、 ... and 、 Modify remote connection
Then login by password
mysql -u root -p
Then enter the password above to log in . Then execute the following command
use mysql;
Execute the following command , Modify user remote access permissions
GRANT ALL PRIVILEGES ON * . * TO 'root'@'%' IDENTIFIED BY '123456';
there 123456 The password you set for the new permission user ,% On behalf of all hosts , It can also be specific to your host ip Address ( take ’%‘ Change it to ’ Your host IP’)
Then refresh the database
flush privileges;
At this point, you can connect to the database through the client tool .
边栏推荐
- Engineering monitoring multi-channel vibrating wire sensor wireless acquisition instrument external digital sensor process
- Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
- Common problems in the use of wireless vibrating wire acquisition instrument
- What you must know about data engineering in mlops
- Nuc980 set up SSH xshell connection
- Mysql表的操作
- 结构体大小
- 如何设计一个高并发系统?
- Maya modeling exercise
- Reverse Integer
猜你喜欢

Why do China Construction and China Railway need this certificate? What is the reason?

Doris学习笔记之与其他系统集成

The main function of component procurement system, digital procurement helps component enterprises develop rapidly

CDA level Ⅰ 2021 new version simulation question 2 (with answers)

Emergency science | put away this summer safety guide and let children spend the summer vacation safely!

Mongodb源码部署以及配置

Typora无法打开提示安装新版本解决办法

Data analysis business core

Feiwo technology IPO meeting: annual revenue of 1.13 billion Hunan Cultural Tourism and Yuanli investment are shareholders

swiper 一侧或两侧露出一小部分
随机推荐
Idea settings ignore file configuration when submitting SVN
[learning record] plt.show() solution to flash back
Common problems of wireless relay acquisition instrument
Vs2017 large factory ERP management system source code factory general ERP source code
Nuc980 set up SSH xshell connection
Runtimeerror: CUDA out of memory (solved) [easy to understand]
telnet远程登录aaa模式详解【华为eNSP】
Okaleido ecological core equity Oka, all in fusion mining mode
Business analysis report and data visualization report of CDA level1 knowledge point summary
Doris学习笔记之与其他系统集成
Hyperautomation for the enhancement of automation in industries
Why do China Construction and China Railway need this certificate? What is the reason?
Gateway 网关报错 SERVICE_UNAVAILABLE
Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction
Apple failed to synchronize on its mobile terminal, and logged out. As a result, it could not log in again
网络安全应急响应技术实战指南(奇安信)
Digital Twins - cognition
RuntimeError: CUDA out of memory(已解决)[通俗易懂]
From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part 2)
Mongodb源码部署以及配置