Tutorial on installing MySQL on Alibaba Cloud Centos 7.5

Tutorial on installing MySQL on Alibaba Cloud Centos 7.5

It seems that the mysql-sever file for installing MySQL normally is not available in the yum source of CentOS 7. You need to download it 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 the mysql service

# service mysqld restart

When you first install MySQL, the root account has no password.

The method statement for setting the password ends with a semicolon

#mysql -uroot 
mysql> set password for 'root'@'localhost' = password('mypasswd');

Create a database and specify utf-8 encoding

mysql> CREATE DATABASE xxxx DEFAULT CHARSET utf8 COLLATE utf8_general_ci

Importing a database

mysql>use database -- Then use the source command, followed by the script file (such as the .sql file used here) 
mysql>source dbname.sql

The above is the tutorial on installing MySQL on Alibaba Cloud Centos 7.5. 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:
  • 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)
  • Detailed explanation of how to install MySQL on Alibaba Cloud
  • 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

<<:  MySQL 5.7.18 installation tutorial under Windows

>>:  Example of using JSX to build component Parser development

Recommend

CSS tips for controlling animation playback and pause (very practical)

Today I will introduce a very simple trick to con...

How to upload and download files between Linux server and Windows system

Background: Linux server file upload and download...

How to monitor the running status of docker container shell script

Scenario The company project is deployed in Docke...

MySQL and MySQL Workbench Installation Tutorial under Ubuntu

Ubuntu install jdk: [link] Install Eclipse on Ubu...

How to implement animation transition effect on the front end

Table of contents Introduction Traditional transi...

TypeScript namespace explanation

Table of contents 1. Definition and Use 1.1 Defin...

Analysis and solution of Chinese garbled characters in HTML hyperlinks

A hyperlink URL in Vm needs to be concatenated wit...

How to start the spring-boot project using the built-in linux system in win10

1. Install the built-in Linux subsystem of win10 ...

Detailed explanation of JavaScript to monitor route changes

Table of contents history pushState() Method push...

How to implement a simple HTML video player

This article introduces the method of implementin...

DOM operation table example (DOM creates table)

1. Create a table using HTML tags: Copy code The ...

Use Visual Studio Code to connect to the MySql database and query

Visual Studio Code is a powerful text editor prod...

How to migrate the data directory in Docker

Table of contents View Disk Usage Disk Cleanup (D...

React nested component construction order

Table of contents In the React official website, ...

Some common mistakes with MySQL null

According to null-values, the value of null in My...