2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2023-03-12 01:00:19 +01:00
.TH "\fBMARIADB-TZINFO-TO-SQL\fR" "1" "22 April 2022" "MariaDB 10.11" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql_tzinfo_to_sql
. \" time zone tables
2009-05-25 11:59:47 +02:00
.SH "NAME"
2022-05-27 17:04:31 +02:00
mariadb-tzinfo-to-sql \- load the time zone tables (mysql_tzinfo_to_sql is now a symlink to mariadb-tzinfo-to-sql)
2009-05-25 11:59:47 +02:00
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql_tzinfo_to_sql\ \fR \fB \fI arguments\fR\fR\ 'u
2009-05-25 11:59:47 +02:00
\fB mysql_tzinfo_to_sql \fR \fB \fI arguments\fR \fR
.SH "DESCRIPTION"
.PP
The
\fB mysql_tzinfo_to_sql\fR
program loads the time zone tables in the
mysql
2009-09-16 14:03:18 +02:00
database\& . It is used on systems that have a
2009-05-25 11:59:47 +02:00
zoneinfo
2010-04-28 15:06:11 +02:00
database (the set of files describing time zones)\& . Examples of such systems are Linux, FreeBSD, Solaris, and Mac OS X\& . One likely location for these files is the
2009-09-16 14:03:18 +02:00
/usr/share/zoneinfo
directory (/usr/share/lib/zoneinfo
2015-09-09 14:32:52 +02:00
on Solaris)\& .
2009-05-25 11:59:47 +02:00
.PP
\fB mysql_tzinfo_to_sql\fR
can be invoked several ways:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB mysql_tzinfo_to_sql \fR \fB \fI tz_dir\fR \fR
shell> \fB mysql_tzinfo_to_sql \fR \fB \fI tz_file tz_name\fR \fR
shell> \fB mysql_tzinfo_to_sql \- \- leap \fR \fB \fI tz_file\fR \fR
2022-04-22 05:56:08 +02:00
shell> \fB mysql_tzinfo_to_sql \- \- skip\- write\- binlog \fR \fB \fI tz_dir\fR \fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
For the first invocation syntax, pass the zoneinfo directory path name to
\fB mysql_tzinfo_to_sql\fR
and send the output into the
\fB mysql\fR
2009-09-16 14:03:18 +02:00
program\& . For example:
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql \- u root mysql\fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
\fB mysql_tzinfo_to_sql\fR
MDEV-23789: Fix unnecessary acute accents in man pages
The man pages has several places where \' is intended to escape the single
quote and just print '. However, in reality this will print an ` (acute
accent). Fix this by removing excess backslashes. Also remove some excess
& in front of dots, such escaping is also unnecessary.
Also join several lines to avoid lone words in quotes to be read by groff
as macros when they are just text.
In a table (t{}) the content must be on new lines separately, so groff
will try to read them as macros too, so use \(aq that renders to '
(single quote).
This error was originally detected by Lintian:
https://lintian.debian.org/tags/acute-accent-in-manual-page
Example of man page sections before and after:
Make a backup of each table´s data file using the name tbl_name.OLD.
->
Make a backup of each table's data file using the name tbl_name.OLD.
A typical debug_options string is ´d:t:o,file_name´.
The default is ´d:t:o,/tmp/my_print_defaults.trace´.
->
A typical debug_options string is 'd:t:o,file_name'.
The default is 'd:t:o,/tmp/my_print_defaults.trace'.
shell> mysql --xml -uroot -e "SHOW VARIABLES LIKE ´version%´"
<?xml version="1.0"?>
<resultset statement="SHOW VARIABLES LIKE ´version%´" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
->
shell> mysql --xml -uroot -e "SHOW VARIABLES LIKE 'version%'"
<?xml version="1.0"?>
<resultset statement="SHOW VARIABLES LIKE 'version%'" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
This command was used to validate no man pages have syntax errors:
for x in *.?
do
echo "##### $x #####"
LC_ALL=C.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z $x >/dev/null
done
The man pages are not perfect after this, there are still a lot of
suboptimal syntax, but this helps towards better man pages.
All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.
2023-03-11 22:01:39 +01:00
reads your system's time zone files and generates SQL statements from them\& .
2009-05-25 11:59:47 +02:00
\fB mysql\fR
2009-09-16 14:03:18 +02:00
processes those statements to load the time zone tables\& .
2009-05-25 11:59:47 +02:00
.PP
The second syntax causes
\fB mysql_tzinfo_to_sql\fR
to load a single time zone file
\fI tz_file\fR
that corresponds to a time zone name
\fI tz_name\fR :
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB mysql_tzinfo_to_sql \fR \fB \fI tz_file\fR \fR \fB \fR \fB \fI tz_name\fR \fR \fB | mysql \- u root mysql\fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
If your time zone needs to account for leap seconds, invoke
\fB mysql_tzinfo_to_sql\fR
2009-09-16 14:03:18 +02:00
using the third syntax, which initializes the leap second information\& .
2009-05-25 11:59:47 +02:00
\fI tz_file\fR
is the name of your time zone file:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB mysql_tzinfo_to_sql \- \- leap \fR \fB \fI tz_file\fR \fR \fB | mysql \- u root mysql\fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
2022-04-22 05:56:08 +02:00
Using the \- \- skip\- write\- binlog option prevents writing of changes to the binary log or to other Galera
cluster members. This can be used with any form of running \fB mysql_tzinfo_to_sql\fR .
.PP
2009-05-25 11:59:47 +02:00
After running
2009-09-16 14:03:18 +02:00
\fB mysql_tzinfo_to_sql\fR , it is best to restart the server so that it does not continue to use any previously cached time zone data\& .
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2020-05-15 17:35:47 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2020 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2019-05-11 20:29:06 +02:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).