-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Ignore --default-time-zone option at setup #544
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
Ignore --default-time-zone option at setup #544
Conversation
Given that simply setting the "TZ" environment variable appropriately fixes
this issue without doing complex hacks like parsing the command line (which
wouldn't account for this setting in a configuration file, for example),
I'm opposed to going to this effort.
If anything, I think "mysql_install_db" should perhaps be updated to ignore
this flag until timezones are imported.
|
Given that https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html explicitly documents the The maintenance burden (and fragility aspect) of adding additional behavior to workaround to what amounts to a quirk of |
@tianon In my experience, TZ is not sufficiently equivalent to --default-time-zone. When I run MySQL with
When I run MySQL (outside Docker) with
From what I can tell, the This difference has an impact on the MySQL JDBC client driver, which:
My preferred solution has been to use |
TZ does not suport '+8:00',any other solution ?
"CST" is a ambiguous time zone name,mysql jdbc driver would make mistakes if actual time zone of application servers is GMT+8 |
Fix for issue #543