CentOS7 64-bit installation mysql graphic tutorial

CentOS7 64-bit installation mysql graphic tutorial

Prerequisites for installing MySQL: Install CentOS 7 64-bit, and the CentOS 7 system can connect to the network <br /> After completion, open the terminal and check whether MySQL has been installed:

Type in the terminal

yum list installed | grep mysql

As shown below:

這里寫圖片描述

This shows that mysql has been installed. If it has been installed, uninstall it first and enter in the terminal:

yum -y remove mysql-libs.x86_64

Remove the installed mysql
After deleting, enter in the terminal:

yum install mysql-community-server

As shown below:

這里寫圖片描述

This is the beginning of the installation. As long as the system can connect to the network, it will automatically download and install. Yum will automatically handle the dependencies between MySQL and other components. During the automatic installation process, you will be asked to choose whether to continue downloading, etc. Enter y and press Enter as shown below:

這里寫圖片描述

Until the end, it will prompt that the installation is complete and all the dependencies that have been installed are as follows:

這里寫圖片描述

This means that the installation is complete. The reason why there is a replacement in mine is that I did not delete the installed mysql before.
After the installation is complete, enter in the terminal: systemctl start mysqld
Restart the mysql service, set the initial username and password, and enter in the terminal: mysql_secure_installation

這里寫圖片描述

As shown above: Generally, after installation, the user name is root and the password is empty, so just press Enter after the above picture appears, as shown below:

這里寫圖片描述

Type y and press Enter

這里寫圖片描述

You will then be prompted to enter the new password to confirm it, then enter y and press Enter to complete it.

After installing MySQL, if you want to access MySQL remotely , you need to open the default port number 3306 .
Type in the terminal: systemctl start mysqld
Restart the mysql service, then enter:

firewall-cmd –permanent –zone=public –add-port=3306/tcp 
firewall-cmd –permanent –zone=public –add-port=3306/udp 

These two commands can open port 3306, as shown below:

這里寫圖片描述

When executing the yum command, I got the error: /var/run/yum.pid is locked and another program with PID xxxx is running. If this occurs, then

rm -f /var/run/yum.pid

After deleting the file, run yum again to make it available.

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:
  • MySQL 5.7.18 installation and configuration method graphic tutorial (CentOS7)
  • Detailed explanation of configuring IPv6 address for Alibaba Cloud ECS (CentOS7) in Linux
  • Installation tutorial of the latest version of Redis 3.2.8 under Centos7
  • Vmware+Centos7 builds Openstack environment (network configuration)
  • How to Install Nextcloud with Nginx and PHP7-FPM in CentOS7
  • Detailed tutorial on installing the latest version of PHP7 on Centos7
  • Restart MariaDB with mysql under Centos7
  • Solve the problem that /etc/rc.local does not execute when starting centos7
  • Detailed steps for installing Scrapy on CentOS7

<<:  How to Enable or Disable Linux Services Using chkconfig and systemctl Commands

>>:  Detailed explanation of JavaScript Reduce

Recommend

How to view server hardware information in Linux

Hi, everyone; today is Double 12, have you done a...

How to install JDK 13 in Linux environment using compressed package

What is JDK? Well, if you don't know this que...

JS operation object array to achieve add, delete, modify and query example code

1. Introduction Recently, I helped a friend to ma...

Learn about TypeScript data types in one article

Table of contents Basic Types any type Arrays Tup...

CSS3 mouse hover transition zoom effect

The following is a picture mouse hover zoom effec...

Examples and comparison of 3 methods for deduplication of JS object arrays

Table of contents 1. Comparison of data before an...

Vue Element-ui form validation rule implementation

Table of contents 1. Introduction 2. Entry mode o...

How to directly reference vue and element-ui in html

The code looks like this: <!DOCTYPE html> &...

Vue + element dynamic multiple headers and dynamic slots

Table of contents 1. Demand 2. Effect 3. All code...

Basic syntax of MySQL index

An index is a sorted data structure! The fields t...

Do you know how to use vue-cropper to crop pictures in vue?

Table of contents 1. Installation: 2. Use: 3. Bui...

Detailed explanation of pipeline and valve in tomcat pipeline mode

Preface In a relatively complex large system, if ...