Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown or incorrect time zone (DBD::mysql::db connected failed) #57

Open
streaps opened this issue Aug 30, 2014 · 1 comment
Open

Unknown or incorrect time zone (DBD::mysql::db connected failed) #57

streaps opened this issue Aug 30, 2014 · 1 comment

Comments

@streaps
Copy link

streaps commented Aug 30, 2014

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"

@theory
Copy link
Member

theory commented Sep 1, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants