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;
'웹개발 관련' 카테고리의 다른 글
[ORACLE] WHERE CASE 검색 (0) | 2019.09.27 |
---|---|
이클립스 컨트롤 클릭으로 이동이 되지 않을 때 ctrl+click (2) | 2018.07.19 |
[ORACLE] pk 두개 생성하기 (0) | 2017.07.19 |
[Mybatis] if 문자열 비교 NumberFormatException (0) | 2017.07.17 |
[html]readonly, disabled 차이 (0) | 2017.07.17 |