Skip to content

Commit

Permalink
Add hint for MySQL timezone error.
Browse files Browse the repository at this point in the history
This adds a comment to the logs about mysql_tzinfo_to_sql for how to
apply the necessary time zone information to MySQL during startup.

Fixes #10906
  • Loading branch information
wagnerrp committed Jul 13, 2012
1 parent fb9b725 commit 451cd30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions mythtv/programs/mythbackend/main_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,10 @@ int run_backend(MythBackendCommandLineParser &cmdline)
{
if (!DBUtil::CheckTimeZoneSupport())
{
LOG(VB_GENERAL, LOG_ERR, "MySQL time zone support is missing. "
"Please install it and try again.");
LOG(VB_GENERAL, LOG_ERR,
"MySQL time zone support is missing. "
"Please install it and try again. "
"See 'mysql_tzinfo_to_sql' for assistance.");
return GENERIC_EXIT_DB_NOTIMEZONE;
}

Expand Down
6 changes: 4 additions & 2 deletions mythtv/programs/mythtv-setup/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,10 @@ int main(int argc, char *argv[])

if (!DBUtil::CheckTimeZoneSupport())
{
LOG(VB_GENERAL, LOG_ERR, "MySQL time zone support is missing. "
"Please install it and try again.");
LOG(VB_GENERAL, LOG_ERR,
"MySQL time zone support is missing. "
"Please install it and try again. "
"See 'mysql_tzinfo_to_sql' for assistance.");
return GENERIC_EXIT_DB_NOTIMEZONE;
}

Expand Down

0 comments on commit 451cd30

Please sign in to comment.