RDB/MySQL
mysql db timezone 변경
세모데
2024. 3. 29. 15:42
1. timezone 정보 생성 ( ex Asia/Seoul )
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
2. 서버 timezone 변경
timedatectl set-timezone Asia/Seoul
3. mysql db에서 timezone 변경
set global time_zone = 'Asia/Seoul';
set session time_zone = 'Asia/Seoul';
참고...) 서버 캐릭터셋 변경
localectl set-locale LANG=ko_KR.utf8