Unknown or incorrect time zone: 'UTC'
If mysql says: Unknown or incorrect time zone: 'UTC' then it doesn't know the timezone database. You can test this by typing mysql> SET time_zone='UTC'; which will succeed only if it knows the timezone UTC (which it should).
The command to fix it is
$ mysql_tzinfo_to_sql /usr/share/zoneinfo/|mysql -u root mysql -p
(leave off the -p if your root account doesn't have a password, in case you are insane)
0 comments:
Post a Comment