[AWS] MySQL Timezone Setup
2015. 12. 23. 15:36ㆍComputer/Server
Hello?
Follow below steps.
1. Create Amazon Instance
2. Install Mysql(Maria DB)
In here. /usr/share/zoneinfo There are timezone info.
Now, We create Timezone Data in MySQL.
1. shell > mysql -uroot -p
mysql > SELECT NOW();
It show to u what timezone u following now.
Ok. Now Start Setup Timezone.
Shell > mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
Finalliy.
mysql > Set time_zone = 'Asia/Seoul'; ( Which u want )
mysql> SET GLOBAL time_zone = 'Asia/Seoul'; ( Which u want )After that
mysql > SELECT NOW();
Correctly Time Appear !
Thanks.
반응형
'Computer > Server' 카테고리의 다른 글
[Cron] 반복작업 (0) | 2016.01.15 |
---|---|
[SQL] Index 체크 및 추가 (0) | 2016.01.08 |
[게임서버] 로그를 만들어보자. (0) | 2015.12.22 |
[Node.js] 우분투 14.04 설치 및 설정 (0) | 2015.11.17 |
[Jenkins] Yosemite 10.10 에서 Jenkins설치시 유의점 (0) | 2015.11.04 |