当前位置:网站首页>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 .
边栏推荐
- maya建模练习
- Apple failed to synchronize on its mobile terminal, so it exited the login. As a result, it could not log in again
- Polymorphism and interface
- [original] nine point calibration tool for robot head camera calibration
- 轻松入门自然语言处理系列 12 隐马尔可夫模型
- Throwing OutOfMemoryError “Could not allocate JNI Env“
- 结构体大小
- sqli-labs Basic Challenges Less11-22
- IDEA设置提交SVN时忽略文件配置
- 基于PaddleOCR开发uni-app离线身份证识别插件
猜你喜欢

2271. 毯子覆盖的最多白色砖块数 ●●

Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO

Can the variable name be in Chinese? Directly fooled people

安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径

Business analysis report and data visualization report of CDA level1 knowledge point summary

Common problems in the use of wireless vibrating wire acquisition instrument

swiper 一侧或两侧露出一小部分

Data analysis business core

Maya modeling exercise

【目录爆破工具】信息收集阶段:robots.txt、御剑、dirsearch、Dirb、Gobuster
随机推荐
安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径
金鱼哥RHCA回忆录:CL210管理存储--管理共享文件系统
新唐NUC980设置DHCP或者静态IP
PHP website design ideas
Business analysis report and data visualization report of CDA level1 knowledge point summary
Wangeditor rich text editor
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)
Working principle of Lora to 4G and gateway repeater
Apple failed to synchronize on its mobile terminal, and logged out. As a result, it could not log in again
The practice of depth estimation self-monitoring model monodepth2 in its own data set -- single card / multi card training, reasoning, onnx transformation and quantitative index evaluation
Gateway 网关报错 SERVICE_UNAVAILABLE
轻松入门自然语言处理系列 12 隐马尔可夫模型
The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path
Practical guide for network security emergency response technology (Qianxin)
Pytorch uses tensorboard to realize visual summary
Matplotlib data visualization three minutes entry, half an hour enchanted?
Throwing OutOfMemoryError “Could not allocate JNI Env“
Setting of parameter configuration tool for wireless vibrating wire collector
How to design a high concurrency system?
Day1: 130 questions in three languages