aws rds mysql 설치, 외부 접속, 캐릭터셋변경
웹개발 관련

aws rds mysql 설치, 외부 접속, 캐릭터셋변경

반응형

aws에 mysql 설치 후 외부 접속

 

 

 

 

- aws.amazon.com 에 접속 후 로그인

 

- https://console.aws.amazon.com/rds/

 

콘솔에 들어가서 instances 에 들어가서 설치.

 

설치는 구글 검색하면 많이 나옴.

 

 

 

설치 후 외부접속하려면

 

- Publicly accessible : Yes

- security group 에서 인바운드 > 위치무관으로 변경

 

변경해도 접속안되면 reboot

(instance actions > reboot)

 

host = Endpoint 정보 적으면됨

 

 

 

 

처음에 설치하면 라틴어로 되어있어서 utf8로 변경해줘야함

 

http://hyeonstorage.tistory.com/276

 

해당 블로그를 참고하여 변경후에 reboot했음

 

 

 

다른 디비는 다 변경이 완료되었는데

한 테이블만 변경이 안되서 구글링함

 

http://www.alphadevx.com/a/420-Converting-a-MySQL-database-from-latin1-to-utf8

 

위 블로그 참고하여 변경했음

 

 

캐릭터셋 확인

SELECT * FROM information_schema.SCHEMATA;

 

캐릭터셋이 라틴어로 되어있던 스키마만 확인

SELECT default_character_set_name FROM information_schema.schemata WHERE schema_name = "test_schema";

 

변경

 

ALTER DATABASE test_schemaCHARACTER SET utf8 COLLATE utf8_general_ci;

 

 

 

 

 

반응형