본문 바로가기

Web

mariadb current_timestamp 한국시간 설정

반응형

mysql_tzinfo_to_sql /usr/share/zoneinfo

mysql_tzinfo_to_sql /usr/share/zoneinfo/|mysql -u root mysql -p


mysql --user=root --password


SET GLOBAL time_zone='Asia/Seoul';

SET time_zone='Asia/Seoul';

exit


vi /etc/my.cnf

default-time-zone = Asia/Seoul