当前位置:网站首页>[mysql] install mysql5.7
[mysql] install mysql5.7
2022-07-01 20:04:00 【just-do-it-zzj】
Catalog
2. Download installation package
install Mysql5.7
1. summary
This experiment is used in Linux7.6 install mysql5.7, For personal learning Mysql Basic function , The production environment may not be suitable .
2. Download installation package
mysql-community-client-5.7.18-1.el7.x86_64.rpm
mysql-community-common-5.7.18-1.el7.x86_64.rpm
mysql-community-libs-5.7.18-1.el7.x86_64.rpm
mysql-community-server-5.7.18-1.el7.x86_64.rpm
3. Check before installation
explain : If the installation fails or needs to be reinstalled Mysql, You can also refer to the following execution steps .
3.1 Check if it is installed mysql
rpm -qa | grep mysql
If the result is returned , Then execute the delete command , Delete package
rpm -e mysql-xxx
3.2 Check for installation mariadb
rpm -qa | grep mariadb # Find out if it comes with mariadb library
If the result is returned , Then execute the delete command , Delete package
rpm -e mariadbxxx --nodeps # Delete
3.3 Check if there is Mysql Related configuration files
find / -name mysql # Find and mysql Related files or folders
If the result is returned , Then execute the delete command one by one
rm –rf /xxx/xxx/mysql # Delete and mysql Relevant files or folders
rm -rf /etc/my.cnf # Delete profile
4. install Mysql
rpm When installing , There are four bags , The installation sequence is as follows :common—>lib—>client—>server,
Unload in reverse order . The following two parameters are not required in the installation :—force –nodeps, Otherwise, you may make mistakes and don't notice , Instead, the installation failed .
Installation sequence ( Strictly follow the order ):
rpm -ivh mysql-community-common-5.7.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.18-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.18-1.el7.x86_64.rpm
5. start-up Mysql
5.1 start-up
systemctl start mysqld.service
5.2 Set up mysql The service is startup
systemctl enable mysqld
6. Login and setup
6.1 Query initial password
You need to find the initial password before logging in for the first time after installation , Execute the following command to find the initial password
cat /var/log/mysqld.log | grep password
![]()
6.2 Sign in
mysql -uroot -p< password >

6.3 Set the password
You need to change your password after logging in for the first time , Execute the following command to change the password
Mode one :
set password for [email protected]=password('[email protected]');
Mode two :
set password = password('[email protected]');
alter user 'root'@'localhost' password expire never;
flush privileges;
7. common problem
7.1 rpm Abuse parameters during installation --nodeps
Incorrect installation sequence . such as mysql-libs The installation of requires mysql-common For the premise , If not installed mysql-common when , install mysql-libs It's time —nodeps, No error will be prompted , But there are actually problems
边栏推荐
- [exercise] HashSet
- List is divided into sets that meet and do not meet conditions (partitioningby)
- 基于图的 Affinity Propagation 聚类计算公式详解和代码示例
- Battery simulation of gazebo robot
- Stack overflow 2022 developer survey: where is the industry going?
- 【C语言】详解 memset() 函数用法
- 有意思了!数据库也搞Serverless!
- 一个程序员如何快速成长
- C#聯合halcon應用——大華相機采集類
- What did you learn about cheating after you went to college?
猜你喜欢

Flask 常用组件

Win11 how to hide the taskbar? Win11 method to hide the taskbar

面试题篇一

1592 example 1 King (sgu223 loj10170 luogu1896 increase + / provincial election -) violent thinking pressure DP 01 Backpack

Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?

EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?

Develop those things: easycvr platform adds playback address authentication function

fastDFS入门

3D panoramic model display visualization technology demonstration

漏洞复现-.Net-ueditor上传
随机推荐
DS transunet: Dual Swing transformer u-net for medical image segmentation
Flask 常用组件
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
Wechat applet realizes keyword highlighting
基于图的 Affinity Propagation 聚类计算公式详解和代码示例
Develop those things: easycvr platform adds playback address authentication function
list分割成满足和不满足条件的集合(partitioningBy)
Optimization of the problem that the request flow fails to terminate during page switching of easycvr cluster video Plaza
Interesting! Database is also serverless!
Oracle physical architecture
windows环境 redis安装和启动(后台启动)
Anaconda installs the virtual environment to the specified path
Summary of SQL aggregate query method for yyds dry goods inventory
SwiftUI 4 新功能大全之 Toggle与 Mixed Toggle 多个绑定组件
Stack Overflow 2022 开发者调查:行业走向何方?
Review the collection container again
【蓝桥杯Web】2022年第十三届蓝桥杯Web大学组国赛真题解析
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
Modsim basic use (Modbus simulator)
List is divided into sets that meet and do not meet conditions (partitioningby)