MariaDB, Timezone 설정
Timezone 설정
mariaDB 접속 후, 시간대 확인
mysql -u root -p
SELECT @@global.time_zone, @@session.time_zone;
mariaDB 종료
exit
터미널에서 시간대 설정
sudo timedatectl set-timezone 'Asia/Seoul'
date
mariaDB 재실행하여 시간대 설정
sudo systemctl restart mysqld
Server returns invalid timezone. Need to set 'serverTimezone' property.
SQL에 접속하신 후 아래 명령어를 순차적으로 입력하고 재시도합니다.
SET GLOBAL time_zone='+09:00';
SET time_zone='+09:00';