Open streaps opened 10 years ago
Well, that's not well-documented in our stuff, is it? Just a mention in Bric::Changes:
Fixed time zone compatibility issue on MySQL. Bricolage now sets time_zone at the same time it sets sql_mode: when it connects to the database. This ensures that date and time comparisons within the database are executed correctly. It of course requires that time zones be installed in MySQL, which can be done by running
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
.
I think you're only the second non-developer to try to deploy to MySQL.
log/error.log: [Sat Aug 30 11:02:32.305791 2014] [perl:error] [pid 20612] [client 127.0.0.1:38667] Unable to connect to database: DBD::mysql::db connected failed: Unknown or incorrect time zone: 'UTC' at /usr/lib/perl5/DBI.pm line 733.\n
https://mariadb.com/kb/en/mariadb/documentation/internationalization-and-localization/time-zones/ "By default, the mysql time zone tables are created, but not populated. It is usually preferable for the system to handle the time zone, but you can populate the mysql time zone tables using the mysql_tzinfo_to_sql utility"