当前位置:网站首页>[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
边栏推荐
- On the next generation entrance of the metauniverse -- the implementation of brain computer interface
- How to use console Log print text?
- 简单但现代的服务器仪表板Dashdot
- ModSim基本使用(Modbus模拟器)
- List is divided into sets that meet and do not meet conditions (partitioningby)
- [Blue Bridge Cup web] analysis of the real topic of the 13th Blue Bridge Cup web university group match in 2022
- Install redis under Linux and configure the environment
- PowerDesigner design name and comment replacement
- 想得到股票开户的优惠链接,如何得知?在线开户是安全么?
- 上大学后明白了哪些坑人的事?
猜你喜欢
基于图的 Affinity Propagation 聚类计算公式详解和代码示例
Error in installing sharp
EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?
math_ Use differentiation to calculate approximate value
Optimization of the problem that the request flow fails to terminate during page switching of easycvr cluster video Plaza
windows环境 redis安装和启动(后台启动)
3D panoramic model display visualization technology demonstration
实例讲解将Graph Explorer搬上JupyterLab
Hls4ml entry method
Process steps of vibrating wire acquisition module for measuring vibrating wire sensor
随机推荐
[multithreading] lock strategy
Interesting! Database is also serverless!
math_ Use differentiation to calculate approximate value
Source code series of authentic children -inheritablethreadlocal (line by line source code takes you to analyze the author's ideas)
8K HDR!|为 Chromium 实现 HEVC 硬解 - 原理/实测指南
STC 32-bit 8051 single chip microcomputer development example tutorial II i/o working mode and its configuration
Use of common built-in classes of JS
Interview question 1
数据分析师听起来很高大上?了解这几点你再决定是否转型
由浅入深学会白盒测试用例设计
Win11怎么关闭开机自启动软件
【let var const】
ModSim基本使用(Modbus模拟器)
走进如心小镇,数智化变革连接“未来社区”
Redis installation and startup in Windows environment (background startup)
uniapp使用腾讯地图选点 没有window监听回传用户的位置信息,怎么处理
Getting started with fastdfs
关于一个神奇函数的用法
振弦采集模塊測量振弦傳感器的流程步驟