当前位置:网站首页>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
边栏推荐
- rpc的正确打开方式|读懂Go原生net/rpc包
- parker派克先导式电磁阀和直动式电磁阀的区别有哪些?
- Unity字体间距
- puppeteer入门之 BrowserFetcher 类
- Picture rule page turning
- What are the functions and features of EMG linear light emitter?
- Introduction to steamvr
- 解读USB3.0测试项目
- Q1 revenue exceeded expectations. Why did man Bang win headwind growth?
- Ugui mouse click diffusion UI effect
猜你喜欢

ZigBee模块无线传输星形拓扑组网结构简介

With determination to forge ahead, JASMINER continues to deepen its brand strength

Some code fragments of a universal and confession wall system developed by PHP

ugui图片墙

Dynamically render data and carousels

DataGrip 2022,DataGrip 功能

远程监控项目离线日志说明书

What are the functions and applications of Mogg test controller

steamVR简介

穆格测试控制器的作用和应用场合有哪些
随机推荐
RSA signature issues
CISP-PTE XSS基础
Q1's revenue exceeded Wall Street's expectations, and the value of Zhiwen group is waiting to return
No more! The entry byte beat for a week and ran decisively.
Practical process of selecting DC-DC switching power supply controller
[Objective-C] dynamically create controls
Address of my bookmark
详述用网络分析仪测量DC-DC和PDN
What hydraulic oil is used for Denison hydraulic pump? What are the requirements
Streaming computing knowledge
【bert】:在训练bert 语义相似的任务时,last ave state 的计算
Tiktok encounters cultural conflict in the UK, and many employees leave in a short time
宝塔面板备份与恢复数据
What are the ABAP keywords and syntax that cannot be used in the ABAP cloud environment?
[Clickhouse column] user initialization of new library role
手写代码call,apply,bind
rpc的正确打开方式|读懂Go原生net/rpc包
Q1 revenue exceeded expectations. Why did man Bang win headwind growth?
Standard dual airbags, Changan Lumin listed, starting at 48900 yuan
UGUI

