当前位置:网站首页>I'll teach you to visit Amazon RDS for a year and build a MySQL cloud database (only 10 minutes, really fragrant)
I'll teach you to visit Amazon RDS for a year and build a MySQL cloud database (only 10 minutes, really fragrant)
2022-07-02 01:00:00 【Liability procedure ape】
Preface
Speaking of cloud vendors , Your first reaction may be Alibaba cloud 、 Hua Wei Yun 、 Tencent, cloud, etc. , Including myself , I remember that Alibaba cloud was the first to do cloud computing in China , Now it is also the leader of domestic cloud manufacturers and Alibaba cloud , After all, people 2009 Started to make clouds in , Need to know 2009 At that time, the whole Internet in China had not developed
But I checked 2021 After the global cloud computing market survey report in, it was found that , Alibaba cloud, the domestic carrier, can only rank third among cloud manufacturers 
In summary aws Can be top1 Why :
- Global advantage , Include 22 Regions 、69 Usable area 、180 Edge sites, etc ;2. Policy advantages , Including physical isolation in overseas China ;
- Technical advantages , Including perfect security services ;
- Case advantages , Most blockchain projects are deployed in AWS On ;
- Resource advantages , For example, we work closely with investors and institutions in the blockchain field to make indirect investment .
Know the difference , Domestic cloud manufacturers still have a long way to go ~
Today's focus is roaring , Is to share : How to visit Amazon server for a year , There's no set , Pure white whoring

The key is coming.
Amazon cloud technology provides 100 Free packages for more than products . among , Computing resources Amazon EC2 First year 12 It's free for three months ,750 Hours / month ; Storage resources Amazon S3 First year 12 It's free for three months ,5GB Standard storage capacity ; Database resources Amazon RDS First year 12 It's free for three months ,750 Hours ;Amazon Dynamo DB 25GB storage capacity Free forever .
Say it again , There's no formula , Pure is white whoring , White whoring entrance

Although it's free , But Amazon is a foreign manufacturer after all , There are several things to pay attention to in registering an account , Today I will show you the whole process , Let's use Amazon rds For example (RDS It's a relational database service (Relational Database Service) For short ), entrance 
Registered account

Then enter the verification code , Check again , You will come to the following password setting interface

Then fill in your personal information
Here you go “ personal ”

There is nothing else to pay attention to , The region is China , Name and address can only be filled in English , therefore , Just fill it in , It's best to fill in the real phone , Because you need to use real name credit cards later
The most critical is this step , When I first registered, I always thought I needed support visa Only your card , Then I interviewed the next ordinary credit card , It's fine too , therefore , You can fill in any credit card here , The expiration date can be seen on the credit card

There is nothing to pay attention to later , After submission, wait for review , The audit cycle is also fast , I passed in a few minutes , The premise is that your information should be filled in correctly , Don't fill it all out , People are so big that a factory won't disclose your personal information
Log in to the console
There are so many things in here after I came in , For convenience , We can search here like the following figure rds, Select the first option for search results

After coming in, we first create a database , Click on 【 Create database 】
Create database
Because we're whoring for nothing , Therefore, the optional configurations are limited , To be honest, the configuration is a little low , But it's completely OK to use it for daily development testing
aws The steps to create a database are very simple , And it did Open the box
Here are two options , The standard creation on the left has more configuration items than the easy creation on the right , Many configurations can be left as default , So we can choose to create it easily in order to save trouble

Next, let's choose the type of database we need , We'll take mysql Take an example. , After all, most people use it

Remember to choose the free package for the database instance size here , The first two are charged 
Finally, some basic information , Including a few points :
- Database identifier : Let's talk about this , The database identifier is not yours mysql Database name , But in aws Unique identifier of the database created on , This identifier is currently AWS All database instances owned by the account must be unique ;
- user name : Database login user name , It's usually root;
- The login password : Password to connect to the database

Click... After filling in 【 Create database 】
Wait a few minutes , Yours mysql The database is created successfully , You can use it after the database instance is created , Is it convenient
thus , We can compare aws rds Create a database and build one on a traditional virtual machine or physical machine mysql The difference between servers
aws rds:
- Create a database instance
- Configuration database
Traditional virtual machine or physical machine :
3. download mysql Binary package
4. decompression
5. install mysql server( You may need to uninstall the old version first )
6. start-up mysql And login
7. Create a new user 、 Set password, etc
8. …
In fact, you can't see anything just by looking at the steps , Traditional installation MySQL It's easy to get familiar with it ,10 It can be done in minutes , But this is based on your normal server environment , If there are old versions left , You have to clean up the residual data first , This step is already easy to make mistakes , All in all ,rds The convenience it brings is not comparable to traditional databases
Connect to database
Now let's connect to the database we just created and do some simple tests

In this interface, you can see the database instance we just created , Click on the database identifier name to view the database details

In the upper right corner, you can also modify database information and other operations , For example, stop 、 restart 、 Create a read Library 、 Pull snapshot 、 Data restore

important
A lot of information in this does not need to be configured , But one thing , Most students may forget , If not configured , Large probability Unable to access the database from outside the server
Configure inbound and outbound rules
Click the Modify button in the upper right corner of the instance details , Turn it down , You will see the security group configuration ,aws It supports configuring security groups separately for each database instance , This is very practical , For example, I have two libraries , One can only be accessed from the Internet , That can be achieved by configuring the entry and exit rules of the security group separately

This configuration is in the security group
Configure security groups
The security team needs to go EC2 Console creation
Search... In the search box EC2( Many say , For this kind of cloud computing console , When looking for function entry, it's best to search directly , Because there are so many console buttons , It can make your scalp numb )


Click the upper right corner to create a security group

Fill in the basic information at will
Entry and exit rules just as the name suggests , Is to specify which ip Access to , And what you can visit ip
We use this as a testing machine , There will be no important information , So for the convenience of , Directly open it all , Just configure it like this

When you're done, create a security group , Wait a few minutes
Back to the database instance we just created , Click Modify , Then set the security group to the one we just created
After the database instance is configured successfully , We can connect and use
For the convenience of demonstration , I'll just use navicat Connect
My is navicat premium, It's already matched aws rds The support of

We choose amazon rds for mysql
In fact, it is common to connect with us mysql equally , Fill in host And password

The domain name of the terminal node here can be in aws rds - Database instance - Connectivity and security Find

The next step is to create a database table, just like normal mysql Same , Don't do too many demonstrations

summary
Compared with ordinary database ,aws rds Lighter 、 Easier to deploy , And elastic and scalable , It also greatly reduces the later maintenance cost , These characteristics doomed that cloud nativity is the future development trend of database , If you are interested in cloud primitives , There's just one recently Cloud native database technology sharing Conference , Interested friends can have a look at ~
边栏推荐
- Leetcode question brushing: stack and queue 07 (maximum value of sliding window)
- Friends circle community program source code sharing
- [JS download files through url]
- Geek DIY open source solution sharing - digital amplitude frequency equalization power amplifier design (practical embedded electronic design works, comprehensive practice of software and hardware)
- How to open an account for individual stock speculation? Is it safe?
- [leetcode] number of maximum consecutive ones
- [eight sorts ②] select sort (select sort, heap sort)
- [eight sorts ①] insert sort (direct insert sort, Hill sort)
- excel数据透视表
- 8.8.4-PointersOnC-20220215
猜你喜欢

XMind思维导图
![[conference resources] the Third International Conference on Automation Science and Engineering in 2022 (jcase 2022)](/img/a6/a2afdf9e18255c9171f61bf074998b.png)
[conference resources] the Third International Conference on Automation Science and Engineering in 2022 (jcase 2022)

测试员8年工资变动,令网友羡慕不已:你一个月顶我一年工资

工作中非常重要的测试策略,你大概没注意过吧

Leetcode skimming: stack and queue 03 (valid parentheses)
![[bottom pop-up selector] uniapp picker component - scroll selector popped up at the bottom](/img/d4/9d27b29080ce83004aa875a499de9b.png)
[bottom pop-up selector] uniapp picker component - scroll selector popped up at the bottom

Excel search and reference function

【底部弹出-选择器】uniapp Picker组件——底部弹起的滚动选择器

【八大排序④】归并排序、不基于比较的排序(计数排序、基数排序、桶排序)

How do Lenovo computers connect Bluetooth headsets?
随机推荐
【会议资源】2022年第三届自动化科学与工程国际会议(JCASE 2022)
什么是商业养老保险?商业养老保险安全靠谱吗?
Common loss function of deep learning
Which securities company is safer to open a stock account
【opencv】train&test HOG+SVM
449 original code, complement code, inverse code
To meet the needs of consumers in technological upgrading, Angel water purifier's competitive way of "value war"
Tensorflow tensor convolution, input and convolution kernel dimension understanding
excel数据透视表
New version of free mobile phone, PC, tablet, notebook four terminal Website thumbnail display diagram online one click to generate website source code
Source code of Qiwei automatic card issuing system
Global and Chinese market of wireless charging magnetic discs 2022-2028: Research Report on technology, participants, trends, market size and share
Two TVs
How do Lenovo computers connect Bluetooth headsets?
AIX存储管理之卷组属性的查看和修改(二)
SSO single sign on implementation.
LeetCode 0241. Design priority for arithmetic expressions - DFS
Schrodinger's Japanese learning applet source code
Output results of convolution operation with multiple tensors and multiple convolution kernels
Global and Chinese markets for the application of artificial intelligence in security, public security and national security 2022-2028: Research Report on technology, participants, trends, market size