当前位置:网站首页>Installing mysql5.7 for Linux
Installing mysql5.7 for Linux
2022-06-11 10:22:00 【LHT-2787】
1、 The first postfix and mariadb-libs Unload , Otherwise, there will be dependency package conflicts :
# rpm -e postfix mariadb-libs
The above command cannot be used with the following :
1. uninstall redhat-lsb…# rpm -ev redhat-lsb-core-4.1-27.el7.centos.1.x86_642. uninstall profix
# rpm -ev postfix-2.10.1-7.el7.x86_64
2、 install mysql Dependence net-tools and perl
# yum -y install net-tools perl
3、 install mysql-common package :
# rpm -ivh mysql-community-common-5.7.22-1.el7.x86_64.rpm
4、 install mysql-libs package :
# rpm -ivh mysql-community-libs-5.7.22-1.el7.x86_64.rpm
If dependency detection fails :
mariadb-libs is obsoleted by mysql-community-libs-8.0.20-1.el7.x86_64
Clear the previously installed dependencies# yum remove mysql-libs
5、 install mysql-client package ;
# rpm -ivh mysql-community-client-5.7.22-1.el7.x86_64.rpm
6、 install mysql-server package
# rpm -ivh mysql-community-server-5.7.22-1.el7.x86_64.rpm
If the following error occurs
The lack of numactl package , Can be installed# yum -y install numactl
Explain the lack of libaio package , Can be installed# yum -y install libaio
7、 Set boot up :
# systemctl enable mysqld
8、 start-up MySql service
# systemctl start mysqld
9、 Check the temporary password
because MySQL5.7 After installation, the root Assign a temporary password to a user , So let's check the temporary password first
# grep 'temporary password' /var/log/mysqld.log
2018-06-01T19:40:08.341478Z 1 [Note] A temporary password is generated for [email protected]: Ct<pX.k7S(=w
After the colon is root User's temporary password :Ct<pX.k7S(=w
10、 Sign in with a temporary password
# mysql -u root -p
Input password :Ct<pX.k7S(=w
11、 Set up root Password ( Remember to add a semicolon )
mysql>ALTER USER 'root'@'localhost' IDENTIFIED BY 'Echoo123.';
mysql> exit
Be careful :mysql5.7 Increased security level , The password must contain : Case letters 、 Numbers and special symbols , And the length cannot be less than 8 position .
12、 Log in with your new password
# mysql -u root -p
Input password :Echoo123.
13、 Open remote login rights
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Wipinfo123.' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
14、 to open up mysql Of 3306 port
# firewall-cmd --zone=public --add-port=3306/tcp --permanent
# firewall-cmd --reload
15、 land Navicat make new connection
user name :IP Address
password : Change your own password
If the connection is successful , It indicates that the setting is successful
If there's a mess :
Add... After the link address bar useUnicode=true&characterEncoding=utf-8
边栏推荐
- 【bert】:在训练bert 语义相似的任务时,last ave state 的计算
- Cas de rectification du CEM rayonné par des équipements électroniques
- 对于力士乐电磁换向阀的功能与作用,你知道多少
- Q1's revenue exceeded Wall Street's expectations, and the value of Zhiwen group is waiting to return
- Standard dual airbags, Changan Lumin listed, starting at 48900 yuan
- Q1营收超预期,满帮为何赢得逆风增长?
- 有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?
- With determination to forge ahead, JASMINER continues to deepen its brand strength
- MD5 learning
- Correct opening method of RPC | understand go native net/rpc package
猜你喜欢

Mysql-- index

【CV基础】颜色:RGB/HSV/Lab

BCGControlBar库专业版,完整记录的MFC扩展类

Empire CMS imitation "game bird" template source code /92kaifa version large mobile game portal template

利用PHP开发的一款万能、表白墙系统部分代码片段

【Objective-C】‘NSAutoreleasePool‘ is unavailable: not available in automatic reference counting mode

Initial deployment of Servlet

Datagrip 2022, datagrip function

Bcgcontrolbar Library Professional Edition, fully documented MFC extension class

Beginning simple blog emlog theme template V3
随机推荐
Bcgcontrolbar Library Professional Edition, fully documented MFC extension class
【bert】:在训练bert 语义相似的任务时,last ave state 的计算
【Objective-C】‘NSAutoreleasePool‘ is unavailable: not available in automatic reference counting mode
iPhone 15 被迫用上 Type-C 接口
吴恩达机器学习课程-第七周
手写代码call,apply,bind
MySQL comparison
DOtween使用方法
EMC rectification cases of electronic equipment radiation
解读USB3.0测试项目
Handwritten code call, apply, bind
Batch add noise to data and generate new named annotation files
接口调优的大致思路
MySQL基础篇常用约束总结下篇
C语言课程设计题目
How much do you know about the functions and functions of Rexroth solenoid directional valve
Secret behind the chart | explanation of technical indicators: tangqi'an channel
详解2.5G/5G/10G Base-T以太网接口物理层一致性测试!
Tree topology networking structure of ZigBee module communication protocol
MySQL basic learning notes 03

