새소식

DB/MariaDB

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';
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.