1
다음은 'MySQL Server Time Zone Support'을 따라 myqlon OpenSuse 가상 시스템의 기본 시간대를 설정합니다. 나는 이것에 관한 다른 질문을 읽었지만, 나는 뭔가를 놓치고있는 것 같다.OpenSuse - mysql에서 시간대 설정
: 나는 다음과 같은 오류가mysql_tzinfo_to_sql /usr/share/zoneinfo/UTC UTC | mysql -u root -p mysql
:
linux-gn77:~ # ls -l /usr/share/zoneinfo/
total 280
drwxr-xr-x 2 root root 4096 May 4 10:35 Africa
drwxr-xr-x 6 root root 4096 May 4 10:35 America
drwxr-xr-x 2 root root 4096 May 4 10:35 Antarctica
drwxr-xr-x 2 root root 4096 May 4 10:35 Arctic
drwxr-xr-x 2 root root 4096 May 4 10:35 Asia
drwxr-xr-x 2 root root 4096 May 4 10:35 Atlantic
drwxr-xr-x 2 root root 4096 May 4 10:35 Australia
drwxr-xr-x 2 root root 4096 May 4 10:35 Brazil
-rw-r--r-- 2 root root 2102 Oct 28 2013 CET
-rw-r--r-- 2 root root 2294 Oct 28 2013 CST6CDT
drwxr-xr-x 2 root root 4096 May 4 10:35 Canada
drwxr-xr-x 2 root root 4096 May 4 10:35 Chile
-rw-r--r-- 4 root root 2411 Oct 28 2013 Cuba
-rw-r--r-- 13 root root 118 Oct 28 2013 UTC
-rw-r--r-- 13 root root 118 Oct 28 2013 Universal
-rw-r--r-- 4 root root 1464 Oct 28 2013 W-SU
-rw-r--r-- 2 root root 1873 Oct 28 2013 WET
-rw-r--r-- 13 root root 118 Oct 28 2013 Zulu
지금 나는 다음과 같은 명령을 실행하여 시간대를로드하려고 :
내 컴퓨터에 영역 정보를 볼 수 있습니다
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql_tzinfo_to_sql: command not found' at line 1
mysql의 버전을 확인했을 때 다음과 같습니다 :
mysql> SHOW VARIABLES LIKE "%version%";
+-------------------------+------------------+
| Variable_name | Value |
+-------------------------+------------------+
| innodb_version | 5.5.33 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.5.33 |
| version_comment | openSUSE package |
| version_compile_machine | i686 |
| version_compile_os | Linux |
+-------------------------+------------------+
누군가 내가이 시간대를 어떻게 설정할 수 있습니까?