HUAWEI CLOUD Cloud Server Evaluation | Yunyao Cloud Server L Instance Rapid Deployment MySQL User Guide

foreword

Hello everyone, I am Ah Q. Just a few days ago, the HUAWEI CLOUD server I bought last year just expired, and I am worried that there is no server to use these days. I just saw the evaluation activity launched by Huawei Cloud. You can receive a one-month service of [Yunyao Cloud Server L instance 2 core 2G3M] service for free .

insert image description here

Yunyao cloud server L instance introduction

What is Yunyao Cloud Server L instance?

If we want to use this server, we must first understand what is Yunyao Cloud Server L instance?

Yunyao cloud server L instance is a new generation of out-of-the-box, new lightweight application cloud server for small and medium-sized enterprises and developers . Yunyao cloud server L instances provide rich and carefully selected application images, realize one-click deployment of applications, and help customers conveniently and efficiently build e-commerce websites, web applications, small programs, learning environments, and various development tests on the cloud.

insert image description here

Product advantages

For the advantages of Yunyao Cloud Server L instance, we directly quote the description in the Huawei Cloud official website Yunyao Cloud Server L instance manual:

insert image description here

Smart and not stuck

  • Supported by the HUAWEI CLOUD architecture, software and hardware synergy combined with AI algorithm intelligent scheduling, to provide you with high-quality performance.
  • HUAWEI CLOUD stores and calculates a network globally, and the data transmission delay is shorter than the blink of an eye, meeting the high requirements of low network delay scenarios such as games, audio and video.

Use as you wish

  • Ultra-high cost performance, ultra-low threshold, open to use as you like.
  • Multiple instance specifications to balance performance and cost.
  • Technology upgrades optimize cloud costs and benefit more start-ups and developers.

Easier to get started

  • One-click ordering of multiple images and resource combinations.
  • Strictly select a variety of high-quality images, which have been strictly tested by HUAWEI CLOUD officials, covering seven scenarios, preset templates, fast construction, safe and reliable.
  • Automated orchestration, one-click activation of resources, and business launch in minutes.
  • Smooth learning curve, wizard-style application construction, and easy application activation.

Management is more worry-free

  • Visual management of topology, resources, and images, and transparent management of business architecture.
  • Intimate service status reminder, one-click operation of resource renewal and withdrawal, realizes minimalist management.
  • Resource load, security, and utilization are monitored in real time to ensure that the service is always online.
  • Optional rich security services, including rich backup, host security and other services, provide the highest level of security protection.

quick buy

Seeing this, I believe that everyone has a preliminary understanding of Yunyao Cloud Server L instance, so please follow Ah Q's footsteps to complete the instance purchase process.

View Coupon

First, you need to log in to HUAWEI CLOUD and go to the console page.

insert image description here

Click [Voucher] in the picture to come to the fee center, and students who participated in the activity will find that the coupon with a face value of 54.99 has arrived.

insert image description here

Buy

buy portal

insert image description here

Click the buy button to buy

insert image description here

Select the instance specification as 2 cores | 2G

insert image description here

Select 1 month for the purchase period and click the Buy Now button

insert image description here

When you go to pay, you must choose our coupon, and then the payment will be displayed [0.03 yuan]

insert image description here

Click to pay online

insert image description here

I chose WeChat payment, and you can choose the payment method yourself. Click to confirm the payment -> Scan the QR code to pay and it will jump to the order payment success page

insert image description here

We click the [Return to HUAWEI CLOUD Yunyaoyun Server Console] button to come to the console

insert image description here
As shown in the figure above, the resource server is being created, which means the purchase has been successful. Wait a few minutes for it to display running.

insert image description here

Install MySQL

Having said so much, we are finally going to get into today's topic, installing MySQL.

reset Password

insert image description here

Click the button to reset the password

insert image description here

At this time, it will restart automatically. After restarting, we will click [Remote Login]

insert image description here
Enter the password you just entered and the login is successful

insert image description here

In order to facilitate the copying of the following installation commands, we can select [local mouse]

insert image description here

Install

Click the [Copy and Paste] button to copy the command
insert image description here

Enter the following commands in sequence to install MySQL

Update the list of software sources for apt

sudo apt update

insert image description here

Install MySQL

sudo apt install mysql-server

During the installation process, it will prompt that 243M space will be used, asking if we need to continue the installation, we enter Y

insert image description here
apt will automatically install MySQL dependencies and related components.

insert image description here

Set username, password, permissions

Next, we need to create a MySQL user and set a password. In a terminal, enter

sudo mysql

This will enter MySQL's interactive command line interface.

insert image description here

Here, we can execute various MySQL commands. First, we need to create a new user:

//这将创建一个新用户,用户名为newuser,密码为password
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

insert image description here

Next, we need to authorize this user to access MySQL:

GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost';
FLUSH PRIVILEGES;

This will grant newuser access to all MySQL privileges and refresh the MySQL privilege table.

insert image description here
create database

create database cheetah;

insert image description here

Now, we can exit the MySQL interactive interface:

exit;

insert image description here

Configure Security Group

Now, we have successfully installed MySQL and created a new user. Next, we can use this new user to manage the MySQL database. Before using the client connection password, we now need to open the MySQL port permissions.

In the [Console] click [Cloud Server] under [Resource Management]

insert image description here

Then click on the instance name

insert image description here

Click [Configure Rules]

insert image description here

Select [Inbound Direction Rules], click [Add Rule], because the default port of mysql is 3306, so we set this port here, click OK to add it.

insert image description here

At this point, everyone can happily connect to the MySQL client and use it happily!

Summarize

This article starts with the introduction of Yunyao Cloud Server L instance and product advantages, so that everyone can have a basic understanding of it. Then through the form of hands-on teaching, we will take you through the purchase of Yunyao Cloud Server L instance and the installation of MySQL. I don't know what everyone thinks about it?

For me personally, through this use and experience, the whole process is relatively smooth, and the interface is completely in line with my personal operating habits and aesthetic standards, so I can give it a five-star praise.

Ah Q hopes that the explanation in this article can help you make better use of Yunyao Cloud Server L instances to meet your needs and achieve more efficient cloud application deployment and management.

Guess you like

Origin blog.csdn.net/Qingai521/article/details/132691320