The correct way to install MySQL using yum on Alibaba Cloud CentOS 7 (recommended)

The correct way to install MySQL using yum on Alibaba Cloud CentOS 7 (recommended)

yum quick install mysql

Add yum repository

rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

View available MySQL versions (skip directly)

yum repolist enabled | grep "mysql.*-community.*"

Import

yum -y install mysql-community-server

Add to startup

systemctl enable mysqld

Start mysql

systemctl start mysqld

Configure initial information

mysql_secure_installation

You may encounter a startup failure with err log location /var/lib/mysql/izwz97b179ej8k0x150aapz.err

No permission, modify permission information directly

cd /var/lib/mysql/performance_schema
chown mysql *
chgrp mysql *

The above is the correct way to install MySQL using yum on Alibaba Cloud CentOS7. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • How to install MySQL using yum on Centos7 and achieve remote connection
  • How to quickly install MySQL 5.7 using YUM under Centos 7.2
  • MySQL 5.7 installation and configuration tutorial under CentOS7 (YUM)
  • Detailed explanation of Tencent Cloud CentOS7.0 using yum to install mysql and the problems encountered in using it
  • Detailed tutorial on how to install mysql database using yum under Centos7 (enhanced version)
  • Detailed steps to install Mysql5.7.19 using yum on Centos7

<<:  Summary of some of my frequently used Linux commands

>>:  Summary of Linux nc command

Recommend

How to configure two or more sites using Apache Web server

How to host two or more sites on the popular and ...

A colorful cat under Linux

Friends who have used the Linux system must have ...

Summary of seven MySQL JOIN types

Before we begin, we create two tables to demonstr...

HTML5+CSS3 coding standards

The Golden Rule No matter how many people are wor...

mysql join query (left join, right join, inner join)

1. Common connections for mysql INNER JOIN (inner...

VMware Workstation Pro installs Win10 pure version operating system

This article describes the steps to install the p...

How to implement online hot migration of KVM virtual machines (picture and text)

1. KVM virtual machine migration method and issue...

Summary of Kubernetes's application areas

Kubernetes is the leader in the container orchest...

SQL interview question: Find the sum of time differences (ignore duplicates)

When I was interviewing for a BI position at a ce...

What does the legendary VUE syntax sugar do?

Table of contents 1. What is syntactic sugar? 2. ...

MySQL detailed single table add, delete, modify and query CRUD statements

MySQL add, delete, modify and query statements 1....