当前位置:网站首页>[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
边栏推荐
- Sum the amount
- EasyCVR集群视频广场页面切换时,请求流未能终止的问题优化
- Modsim basic use (Modbus simulator)
- A quietly rising domestic software, low-key and powerful!
- Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
- 振弦采集模块测量振弦传感器的流程步骤
- Myslq ten kinds of locks, an article will take you to fully analyze
- 独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
- Set object value changes null value object
- Source code series of authentic children -inheritablethreadlocal (line by line source code takes you to analyze the author's ideas)
猜你喜欢

实例讲解将Graph Explorer搬上JupyterLab

关于元宇宙下一代入口——脑机接口的实现

使用Zadig从0到1搭建持续交付平台

MYSLQ十种锁,一篇文章带你全解析

【多线程】锁策略

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

What if the win11 shortcut key switching input method doesn't respond? Shortcut key switching input method does not respond

Realize pyramids through JS (asterisk pyramid, palindrome symmetric digital pyramid)

为定时器和延时器等其它情况的回调函数绑定当前作用域的this

Getting started with fastdfs
随机推荐
qobject_cast用法
关于new Set( )还有哪些是你不知道的
Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
Simple but modern server dashboard dashdot
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
ORA-01950
Flask 常用组件
Source code series of authentic children -inheritablethreadlocal (line by line source code takes you to analyze the author's ideas)
Related concepts of cookies and sessions
On the next generation entrance of the metauniverse -- the implementation of brain computer interface
有意思了!数据库也搞Serverless!
list分割成满足和不满足条件的集合(partitioningBy)
Procédure de mesure du capteur d'accord vibrant par le module d'acquisition d'accord vibrant
Interview questions shared in today's group
Wechat applet realizes keyword highlighting
上大学后明白了哪些坑人的事?
基于图的 Affinity Propagation 聚类计算公式详解和代码示例
[untitled]
Develop those things: easycvr cluster device management page function display optimization
Anaconda installs the virtual environment to the specified path