MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Ignacio Galarza Date:July 13 2006 2:48pm
Subject:bk commit into 5.0 tree (iggy:1.2219) BUG#19779
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of iggy. When iggy does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository

ChangeSet@stripped, 2006-07-13 10:48:34-04:00, iggy@stripped +1 -0
  Bug #19779: mysql_explain_log documentation is outdated.

  scripts/, 2006-07-13 10:48:31-04:00, iggy@stripped +13 -11
    Changed to mysql_explain_log.  Added usage information for printerror. Minor cleanup.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	iggy
# Host:
# Root:	/mnt/storeage/mysql-5.0-maint_bug19779

--- 1.3/scripts/	2006-07-13 10:48:40 -04:00
+++ 1.4/scripts/	2006-07-13 10:48:40 -04:00
@@ -1,5 +1,6 @@
-#!@PERL@ -w
 use strict;
+use warnings;
 use DBI;
 use Getopt::Long;
@@ -58,7 +59,7 @@
   else {
     $Param->{Start} = time;
-    while(<STDIN>) {
+    while(<>) {
       $Param->{LineCount} ++ ;
       if ($Param->{ViewDate} ) {
@@ -317,6 +318,8 @@
 --socket=SOCKET     mysqld socket file to connect
+--printerror=1      enable error output
+-e 1
 Read logfile from STDIN an try to EXPLAIN all SELECT statements. All UPDATE statements are rewritten to an EXPLAIN SELECT statement. The results of the EXPLAIN statement are collected and counted. All results with type=ALL are collected in an separete list. Results are printed to STDOUT.
@@ -331,7 +334,7 @@
 =head1 NAME
 Feed a mysqld general logfile (created with mysqld --log) back into mysql
 and collect statistics about index usage with EXPLAIN.
@@ -348,7 +351,7 @@
 =head1 USAGE [--date=YYMMDD] --host=dbhost] [--user=dbuser] [--password=dbpw] [--socket=/path/to/socket] < logfile
+mysql_explain_log [--date=YYMMDD] --host=dbhost] [--user=dbuser] [--password=dbpw] [--socket=/path/to/socket] < logfile
 --date=YYMMDD       select only entrys of date
@@ -370,20 +373,19 @@
+--printerror=1      enable error output
+-e 1
 =head1 EXAMPLE --host=localhost --user=foo --password=bar < /var/lib/mysql/mobile.log
+mysql_explain_log --host=localhost --user=foo --password=bar < /var/lib/mysql/mobile.log
 =head1 AUTHORS
   Stefan Nitz
-  Jan Willamowius <jan@stripped>,
+  Jan Willamowius <jan@stripped>,
   Dennis Haney <davh@stripped> (Added socket support)
-If you are looking for a MySQL or Perl job, take a look at
-and send me an email with your resume (you must be speaking German!).
 =head1 SEE ALSO
bk commit into 5.0 tree (iggy:1.2219) BUG#19779Ignacio Galarza13 Jul