当前位置:网站首页>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
边栏推荐
- Technology cloud report: privacy computing under the wave of Web3.0
- 吴恩达机器学习课程-第七周
- 图表背后的秘密 | 技术指标讲解:唐奇安通道
- 鼠标点击坐标转换生成
- How much do you know about the functions and functions of Rexroth solenoid directional valve
- Detail measurement of DC-DC and PDN with network analyzer
- [Objective-C] dynamically create controls
- 本人书签常存的地址
- DENISON液压泵用什么液压油?有哪些要求
- BCGControlBar库专业版,完整记录的MFC扩展类
猜你喜欢

DataGrip 2022,DataGrip 功能

Explain the physical layer consistency test of 2.5g/5g/10g Base-T Ethernet interface in detail!

EMG线性光源发射器有哪些功能和特点呢?

IPhone 15 forced to use type-C interface

安全相关网站推荐

parker派克先导式电磁阀和直动式电磁阀的区别有哪些?

Drink at night, 50 classic SQL questions, really fragrant~

After four years of outsourcing, it was abandoned

对于力士乐电磁换向阀的功能与作用,你知道多少

What are the ABAP keywords and syntax that cannot be used in the ABAP cloud environment?
随机推荐
Secret behind the chart | explanation of technical indicators: tangqi'an channel
DOtween使用方法
Explain the physical layer consistency test of 2.5g/5g/10g Base-T Ethernet interface in detail!
知识点滴 - 性格分析-四类法
BCGControlBar库专业版,完整记录的MFC扩展类
以银行异业合作为例,浅谈小程序生态的建设
Drink at night, 50 classic SQL questions, really fragrant~
Initial deployment of Servlet
Function and function of wandfluh proportional valve
What is digital twin? A real-time and virtual representation
Bcgcontrolbar Library Professional Edition, fully documented MFC extension class
对于力士乐电磁换向阀的功能与作用,你知道多少
Mysql--事务
Address of my bookmark
【机器学习理论】True Positive, True Negative, False Positive, False Negative概念
How much do you know about the functions and functions of Rexroth solenoid directional valve
Pagoda panel backup and recovery data
Mouse click coordinate transformation generation
Mysql-- index
【CV基础】颜色:RGB/HSV/Lab

