MariaDB 접속 및 기본 사용 실습
CloudFormation 스택 생성하기 - 링크 클릭 후 템플릿 파일로 기본 환경 자동 배포
https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=DBLab&templateURL=https:%2F%2Fs3.ap-northeast-2.amazonaws.com%2Fcloudformation.cloudneta.net%2FDB%2Faws-db.yaml
다음
클릭
키 설정 후 다음
클릭
기본 값으로 두고 다음
클릭
스택 생성
클릭
DBLab이 생성되었습니다
SSH로 WebSrv 접속 후
1 |
|
![스크린샷 2021-07-15 오전 1 06 18](https://user-images.githubusercontent.com/87232411/125659213-b3004f56-9e3c-4a75-931d-a435b22568da.png)
![스크린샷 2021-07-15 오전 1 06 33](https://user-images.githubusercontent.com/87232411/125659215-564ffa1c-1628-4d2f-b86a-cb77427fd673.png)
![스크린샷 2021-07-15 오전 1 06 53](https://user-images.githubusercontent.com/87232411/125659216-94a9c4b1-3261-490c-8c58-1738dd8deb2f.png)
SSH로 DBSrv에 접속 후
1 |
|
![스크린샷 2021-07-15 오전 1 07 06](https://user-images.githubusercontent.com/87232411/125659218-f4455832-314e-4921-a1ee-9325888fad79.png)
![스크린샷 2021-07-15 오전 1 07 17](https://user-images.githubusercontent.com/87232411/125659221-ca461efc-5351-4af6-8360-2165dd0e0825.png)
MariaDB 에서 기본적인 SQL문 사용해보기
1 |
|
![스크린샷 2021-07-15 오전 1 07 35](https://user-images.githubusercontent.com/87232411/125659224-126f3840-bdfc-4d23-a09b-7633d3c55cf4.png)
![스크린샷 2021-07-15 오전 1 07 50](https://user-images.githubusercontent.com/87232411/125659226-26807007-7e59-45c9-a5f6-b5a78720e60c.png)
![스크린샷 2021-07-15 오전 1 08 06](https://user-images.githubusercontent.com/87232411/125659229-66072272-467a-4e3e-9f16-dbf55d0a74d2.png)
![스크린샷 2021-07-15 오전 1 08 22](https://user-images.githubusercontent.com/87232411/125659230-6ea9ec21-1480-4661-a598-6ea9b9a1342e.png)
![스크린샷 2021-07-15 오전 1 09 45](https://user-images.githubusercontent.com/87232411/125659232-9bad22b7-d008-403d-96e3-ed3a87761a05.png)
![스크린샷 2021-07-15 오전 1 10 12](https://user-images.githubusercontent.com/87232411/125659235-b3abb029-47bf-4818-b25b-200a1aac548e.png)
![스크린샷 2021-07-15 오전 1 10 22](https://user-images.githubusercontent.com/87232411/125659238-3d409269-88c5-49ab-8abb-24ccb8a2a76e.png)
![스크린샷 2021-07-15 오전 1 10 34](https://user-images.githubusercontent.com/87232411/125659241-159aad6d-0d36-44e2-8c59-58a5b319437b.png)
![스크린샷 2021-07-15 오전 1 10 58](https://user-images.githubusercontent.com/87232411/125659242-3f4093b5-a3cd-42b2-b5d6-f5600c7c111e.png)
생성 및 데이터(레코드) 생성 변경
1 |
|
![스크린샷 2021-07-15 오전 1 11 25](https://user-images.githubusercontent.com/87232411/125659243-f778732c-6a67-42fb-b5c8-79fba2d7f5b2.png)
![스크린샷 2021-07-15 오전 1 11 36](https://user-images.githubusercontent.com/87232411/125659248-38b90d21-04d2-498c-a675-558ebdf00e3c.png)
![스크린샷 2021-07-15 오전 1 11 48](https://user-images.githubusercontent.com/87232411/125659249-aa01aab5-5809-4f8c-9bd5-71794e64a373.png)
![스크린샷 2021-07-15 오전 1 12 00](https://user-images.githubusercontent.com/87232411/125659250-b0d28d85-74fa-4fa2-90fe-2fa26f9fde5f.png)
![스크린샷 2021-07-15 오전 1 12 13](https://user-images.githubusercontent.com/87232411/125659251-74f6ff70-dfaf-40f9-b91e-82f09cb55a84.png)
![스크린샷 2021-07-15 오전 1 12 57](https://user-images.githubusercontent.com/87232411/125659253-e46ab7c5-b3fa-485d-b347-a6c652413f6d.png)
![스크린샷 2021-07-15 오전 1 14 55](https://user-images.githubusercontent.com/87232411/125659255-34ac7a5f-ff96-4380-a4ee-355d4b1f4e1e.png)
![스크린샷 2021-07-15 오전 1 15 43](https://user-images.githubusercontent.com/87232411/125659257-d3a82eea-4a69-4ff6-9c91-ff04e55dae6f.png)
![스크린샷 2021-07-15 오전 1 16 10](https://user-images.githubusercontent.com/87232411/125659259-0dca49c9-17c7-4a89-8e64-3724360a2859.png)
![스크린샷 2021-07-15 오전 1 17 00](https://user-images.githubusercontent.com/87232411/125659260-4d782599-ee69-4ad3-a6ff-00fa45381b61.png)
![스크린샷 2021-07-15 오전 1 17 21](https://user-images.githubusercontent.com/87232411/125659264-c8f31d14-bac1-4b55-a3d8-389606ecb5cf.png)
![스크린샷 2021-07-15 오전 1 17 32](https://user-images.githubusercontent.com/87232411/125659266-f8647494-90b6-41f5-95a6-559ba0124fc4.png)
![스크린샷 2021-07-15 오전 1 17 41](https://user-images.githubusercontent.com/87232411/125659269-9dc59f70-8c17-4a43-b20a-d66a7655b049.png)
트리 파일 확인
1 |
|
![스크린샷 2021-07-15 오전 1 19 05](https://user-images.githubusercontent.com/87232411/125659272-08a4d22e-acc4-487a-84be-6f776a5e8624.png)
심화 옵션)HTTP://WebEC2_PublicIP/php_mysql/1.php 형식으로 접속
1.php
접속
1 |
|
![스크린샷 2021-07-15 오전 1 20 21](https://user-images.githubusercontent.com/87232411/125659276-d519b64c-553c-41b5-8699-a8e92fc5d907.png)
2.php
접속
1 |
|
![스크린샷 2021-07-15 오전 1 22 08](https://user-images.githubusercontent.com/87232411/125659278-459b4f1c-04a9-4e2a-98d6-ba7f165b6975.png)
![스크린샷 2021-07-15 오전 1 22 19](https://user-images.githubusercontent.com/87232411/125659279-99de7272-f3ef-4cff-9665-a915d6c238fa.png)
3.php
접속
1 |
|
![스크린샷 2021-07-15 오전 1 22 40](https://user-images.githubusercontent.com/87232411/125659280-3edb024f-3ceb-40b9-8770-e0ead70078d8.png)
![스크린샷 2021-07-15 오전 1 22 55](https://user-images.githubusercontent.com/87232411/125659281-944dabd6-e41b-40e6-a957-41b988e319df.png)
4.php
접속
1 |
|
![스크린샷 2021-07-15 오전 1 23 09](https://user-images.githubusercontent.com/87232411/125659282-bab63dcd-b6e9-455f-8f72-29f3f732cbdb.png)
![스크린샷 2021-07-15 오전 1 23 18](https://user-images.githubusercontent.com/87232411/125659283-662dabf3-593f-4410-8e7b-e2d930d2a469.png)
5.php
접속
직접 레코드 추가 후 웹 페이지(5.php) 반영 확인
1 |
|
![스크린샷 2021-07-15 오전 1 23 45](https://user-images.githubusercontent.com/87232411/125659289-33e04fc5-9abf-47bf-a9bd-3e2cfa6d8a4b.png)
![스크린샷 2021-07-15 오전 1 24 26](https://user-images.githubusercontent.com/87232411/125659293-4746a539-e7e1-4ab4-b278-d25106f82a75.png)
![스크린샷 2021-07-15 오전 1 25 21](https://user-images.githubusercontent.com/87232411/125659297-cfede565-6fa8-4ee8-b01c-55ac73681b28.png)
다시 5.php를 조회해보면 내가 추가된 걸 볼 수 있다
심화 옵션) 회원 관리 시스템
HTTP://WebEC2_PublicIP/usermgmt/main.html 형식으로 접속
신규 회원 등록
을 누른 후에 정보를 입력
오 등록이 되었습니다
회원을 조회해보니 가시다님이랑 제가 있네요 ㅎㅎ
자 회원 삭제를 해줍시다
회원 삭제
를 클릭
삭제 되었네요
보시다시피 제가 사라졌습니다
참고 자료 : AFOS[2기] 노션 내용
[AWS] 6주차-2 MariaDB 접속 및 기본 사용 실습
http://example.com/2021/07/14/2021-07-14-AFOS-2/