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

Example of how nginx implements dynamic and static separation

Table of contents Deploy nginx on server1 Deploy ...

How to configure SSL for koa2 service

I. Introduction 1: SSL Certificate My domain name...

Detailed explanation of Navicat's slow remote connection to MySQL

The final solution is in the last picture If you ...

HTML table_Powernode Java Academy

To draw a table in HTML, use the table tag tr me...

Solution for using Baidu share on Https page

Since enabling https access for the entire site, ...

Reasons and solutions for MySQL sql_mode modification not taking effect

Table of contents Preface Scenario simulation Sum...

Ten important questions for learning the basics of Javascript

Table of contents 1. What is Javascript? 2. What ...

Robots.txt detailed introduction

Robots.txt is a plain text file in which website ...

The basic principles and detailed usage of viewport

1. Overview of viewport Mobile browsers usually r...

How to remove the dividing line of a web page table

<br />How to remove the dividing lines of a ...

Fixed a bug caused by scrollbar occupying space

background This bug was caused by滾動條占據空間. I check...