Detailed explanation of how to install MySQL on Alibaba Cloud

Detailed explanation of how to install MySQL on Alibaba Cloud

As a lightweight open source database, MySQL is widely used in enterprise-level applications. I have used mssql, oracle, postgresql, mysql before. There is currently no Oracle on Alibaba Cloud. From my personal experience, I would choose MySQL first when creating a project.

Uninstall the existing mysql

The mysql database may already exist in the system, so we need to uninstall it before installation.

# rpm -qa|grep -i mysql

This command will display the installed MySQL software, and then you can uninstall the software one by one using the following commands. Note: This uninstall is not complete, but it is enough here.

# yum remove 'software name'

Today I will briefly introduce the steps to install MySQL on Alibaba Cloud. My personal operating system is CentOs of Alibaba Cloud ECS. First, download and install mysql-server from the official website:

wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server

After successful installation, restart mysql:

service mysqld restart

There is no password for the first installation. We need to set a password for root. First, switch to the mysql command:

mysql -u root

Set password:

mysql>set password for 'root'@'localhost' =password('password');

Remote connection settings, by default, do not allow all IPs to allow remote connections:

mysql> grant all privileges on *.* to root@'%' identified by 'password';

The latest Alibaba Cloud intranet inbound direction does not need to be set up, and the default MySQL port 3306 is already allowed.

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 tutorial on installing mysql8.0.22 on Alibaba Cloud centos7
  • Detailed tutorial on installing MySQL database on Alibaba Cloud Server
  • How to install MySQL 8.0.13 in Alibaba Cloud CentOS 7
  • Tutorial on installing MYSQL8.0 on Alibaba Cloud ESC
  • Alibaba Cloud ECS cloud server (linux system) cannot connect remotely after installing MySQL (pitfall)
  • Tutorial on installing MySQL on Alibaba Cloud Centos 7.5
  • How to solve the 2002 error when installing MySQL database on Alibaba Cloud
  • Detailed explanation on how to install MySQL database on Alibaba Cloud Server

<<:  Script example for starting and stopping spring boot projects in Linux

>>:  Vue implements left and right sliding effect example code

Recommend

JavaScript implementation of classic snake game

This article shares the specific code of JavaScri...

Common HTML tag writing errors

We better start paying attention, because HTML Po...

Solution to MySQL 8.0 cannot start 3534

MySQL 8.0 service cannot be started Recently enco...

Tutorial for installing MySQL 8.0.18 under Windows (Community Edition)

This article briefly introduces how to install My...

How to use Docker to limit container resources

Problem Peeping In the server, assuming that the ...

In-depth explanation of JavaScript this keyword

Table of contents 1. Introduction 2. Understand t...

Markup language - simplified tags

Click here to return to the 123WORDPRESS.COM HTML ...

Using iframe techniques to obtain visitor QQ implementation ideas and sample code

Today at work, a friend I added temporarily asked ...

MySQL study notes on handling duplicate data

MySQL handles duplicate data Some MySQL tables ma...

JS realizes the case of eliminating stars

This article example shares the specific code of ...

JavaScript to achieve calendar effect

This article shares the specific code for JavaScr...

Tips for creating two-dimensional arrays in JavaScript

Creation of a two-dimensional array in Js: First ...

Use mysql to record the http GET request data returned from the url

Business scenario requirements and implementation...