当前位置:网站首页>Install MySQL in ECS (version 2022)
Install MySQL in ECS (version 2022)
2022-06-22 21:08:00 【Call me uncle】
Catalog
1、 Check if it has been installed before
2、 Download the official Mysql package
7、 Check the initial password ( The red part is the initial password )
Two 、 Error reporting and solutions
One 、 Installation steps
1、 Check if it has been installed before
rpm -qa| grep mysql
Normal is not , If it has been installed, you can delete it with the following command
rpm -e file name 2、 Download the official Mysql package
- Enter into usr/local

- Download the official Mysql package
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

3、 install MySQL package
yum -y install mysql57-community-release-el7-10.noarch.rpm
4、yum install MySQL
yum -y install mysql-community-server --nogpgcheck
5、 start-up MySQL service
systemctl start mysqld.service
6、 see MySQL Running state
service mysqld status
7、 Check the initial password ( The red part is the initial password )
grep 'password' /var/log/mysqld.log
8、 Access to database
mysql -u root -p
9、 Set password free login
exit; sign out mysql>
close mysql service
service mysqld stop
adopt vi Enter file
vi /etc/my.cnf

10、 Restart the service
start mysqld.service
mysql -u root -p

adopt show databases; Remember to bring a semicolon

Enter the configuration file my.cnf in , Delete skip-grant-tables restart , Landing at


Two 、 Error reporting and solutions
problem :
When connecting to the database, the following error will be reported if the connection fails

terms of settlement :
- The following error will be reported when entering the database

terms of settlement :
mysql> set global validate_password_policy=0;
mysql> set global validate_password_length=1;
mysql> SET PASSWORD = PASSWORD('123456789');
mysql> ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
mysql> flush privileges;
The reason is that the password is too simple , Just do it

- modify usr Below host
mysql> use mysql;
mysql> show tables;
mysql> select user from user;
mysql> select host,user,authentication_string from user;
mysql> update user set host='%' where user='root';
----- restart ----------
service mysqld restart



边栏推荐
- Kotlin1.6.20 new features context receivers tips
- 89-oracle SQL写法与优化器缺陷一例
- Baijia forum Huangdi Neijing (Part I)
- Moke 5. Service discovery -nacos
- Visualization of R language nutrient dataset
- 阿里云视频点播播放出错,控制台访问出现code:4400
- 山东大学科技文献期末复习(个人速成向)
- R语言AirPassengers数据集可视化
- 74-这类SQL优化,oracle输给了mysql,如何补救?
- Easyclick update Gallery
猜你喜欢

Ribbon load balancing

慕课5、服务发现-Nacos

Container container runtime (2): which is better for you, yum installation or binary installation?
![[proteus simulation] 8x8LED dot matrix digital cyclic display](/img/a9/0107eb02c7a081fb466b1c7c12baef.png)
[proteus simulation] 8x8LED dot matrix digital cyclic display

【20. 有效的括号】
![[160. cross linked list]](/img/79/177e2c86bd80d12f42b3edfa1974ec.png)
[160. cross linked list]

Visualization of wine datasets in R language

Moke 6. Load balancing ribbon

Résolu: peut - on avoir plus d'une colonne auto - incrémentale dans un tableau

53页智慧校园智能化系统设计方案(附下载)
随机推荐
R语言midwest数据集可视化
91-oracle普通表改分区表的几种方法
NBA季后赛对阵图
SwiftUI如何模拟视图发光增大的动画效果
Golang学习笔记—结构体
R 语言 wine 数据集可视化
79-不要看到有order by xxx desc就创建desc降序索引-文末有赠书福利
MySql给某列字段添加(追加)前缀后缀
Stochastic Adaptive Dynamics of a Simple Market as a Non-Stationary Multi-Armed Bandit Problem
密码学系列之:PKI的证书格式表示X.509
[palindrome structure of or36 linked list]
89-oracle SQL写法与优化器缺陷一例
86-给参加<SQL写法与改写培训>的学员补充一个二手案例
A Dynamic Near-Optimal Algorithm for Online Linear Programming
Objective-C不同数据类型占用字节大小
[cm11 linked list splitting]
Apple corefoundation source code
Scheduling with Testing
底部菜单添加的链接无法跳转到二级页面的问题
Feign常见问题总结