0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

aws apache rds

Last updated at Posted at 2020-08-17

ec2にログイン

アパッチをyumでインストール

#RDS

private subnet の作成

ip 10.0.20.0/24
internet gateway と接続しない。
RDSを作るとき用にもう一つ
ip 10.0.21.0/24も作る。availability zoneを違うところにして

RDSの作成

まず、セキュリティグループの設定
データベース用の作成
xxxx-db-sg あたりにして
vpc の選択
inbound rule
type MYSQL/Aurora
Source webように作ったもの

RDSに移動
database create

DB instance identifierに名前を入れて
Credentials Settings
Master user
password 設定

connectivity

VPC

vpc-sg

availability zone の設定

###追加の設定
db name db-dev
sg の設定

ssh

terminal で
login
mysql install

database endpoint 確認。

mysql -h endpoint -uroot

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?