Tutorial on installing mysql5.7.17 via yum on redhat7

Tutorial on installing mysql5.7.17 via yum on redhat7

The RHEL/CentOS series of Linux operating systems do not have the MySQL source themselves, so you need to download and install it yourself. This article describes how to install the MySQL 5.7.x database.

Step 1: Download the source

[root@client ~]# wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm

Note: Select the one starting with mysql57-community-releasexxx. Do not select the one starting with mysql-community-releasexxx. The one with 57 is the mysql 5.7 version.

這里寫圖片描述

Step 2: Install the source

[root@client ~]# rpm -ivh mysql57-community-release-el7-8.noarch.rpm

這里寫圖片描述

After installing the mysql5.7 source, there will be two more files in the /etc/yum.repo.d directory

mysql-community.repo and mysql-community-source.repo

這里寫圖片描述

Step 3: Direct installation

[root@client yum.repos.d]#yum install mysql-server

這里寫圖片描述

Step 4: Database initialization and startup

[root@client ~]# mysqld --initialize

[root@client ~]# mysqld --user=root

After initialization, mysql will generate a temporary password (/var/log/mysqld.log)

這里寫圖片描述

Modify the temporary password using the following command

[root@client ~]# mysqladmin -uroot -p password

這里寫圖片描述

Authorize the new user hadoop and log in using the new user hadoop

這里寫圖片描述

Wonderful topic sharing: Installation tutorials for different versions of MySQL Installation tutorials for MySQL 5.7 versions Installation tutorials for MySQL 5.6 versions

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed steps to install MySQL 5.7.10 on redhat7.1 (with pictures and text)
  • The whole process of installing MYSQL under redhat 5.4
  • Installation of apache+php+mysql+imap+ldap+jdk+tomcat under redhat
  • MySQL installation diagram MySQL graphic installation tutorial (detailed instructions)
  • MySQL 5.7.13 installation and configuration method graphic tutorial (linux)
  • Installation and configuration process of linux mysql5.6 version
  • Linux environment mysql5.7.12 installation tutorial
  • MySQL 5.7.13 installation tutorial under Linux environment
  • The most complete MySQL 5.7.13 installation and configuration method graphic tutorial (linux) highly recommended!
  • Detailed Tutorial on Installing MySQL 5.7 on RedHat 6.5

<<:  Detailed explanation of MySQL date string timestamp conversion

>>:  Vue implements button switching picture

Recommend

JavaScript BOM location object + navigator object + history object

Table of contents 1. Location Object 1. URL 2. Pr...

Detailed explanation of MySQL basic operations (Part 2)

Preface This article contains 1. Several major co...

mySql SQL query operation on statistical quantity

I won't say much nonsense, let's just loo...

Draw a heart with CSS3

Achieve resultsRequirements/Functionality: How to...

How to limit the value range of object keys in TypeScript

When we use TypeScript, we want to use the type s...

What is Makefile in Linux? How does it work?

Run and compile your programs more efficiently wi...

Teach you how to build a Hadoop 3.x pseudo cluster on Tencent Cloud

1. Environmental Preparation CentOS Linux release...

Eight ways to implement communication in Vue

Table of contents 1. Component Communication 1. P...

Example code for implementing card waterfall layout with css3 column

This article introduces the sample code of CSS3 c...

Install tomcat and deploy the website under Linux (recommended)

Install jdk: Oracle official download https://www...

How to query the minimum available id value in the Mysql table

Today, when I was looking at the laboratory proje...

iview implements dynamic form and custom verification time period overlap

Dynamically adding form items iview's dynamic...

mysql-5.7.28 installation tutorial in Linux

1. Download the Linux version from the official w...