我试图在本地设置 MySql 数据库中的时区表,但我无法做到。
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysqldb
该命令的输出如下:
Enter password: Warning: Unable to load '/usr/share/zoneinfo/+VERSION' as time zone. Skipping it.
ERROR 1146 (42S02) at line 1: Table 'mysqldb.time_zone' doesn't exist
user:folser user$
你知道会发生什么吗?