Loading Docs/manual.texi +10 −9 Original line number Diff line number Diff line Loading @@ -22185,8 +22185,6 @@ Monty 1 row in set (0.09 sec) @end example @itemize @bullet @item For logging, you can use the @code{tee} option. The @code{tee} can be started with option @code{--tee=...}, or from the command-line interactively with command @code{tee}. All the data displayed on the Loading @@ -22198,7 +22196,6 @@ used. Note that @code{tee} will flush the results into the file after each command, just before the command-line appears again waiting for the next command. @item Browsing, or searching the results in the interactive mode in Unix less, more, or any other similar program, is now possible with option @code{--pager[=...]}. Without argument, @code{mysql} client will look Loading @@ -22213,8 +22210,10 @@ the popen() function, which doesn't exist in Windows. In Windows, the @code{tee} option can be used instead, although it may not be as handy as @code{pager} can be in some situations. A few tips about @code{pager}: @itemize @bullet @item A few tips about @code{pager}: You can use it to write to a file: You can use it to write to a file: @example mysql> pager cat > /tmp/log.txt @end example Loading @@ -22223,6 +22222,8 @@ for the programs that you want to use with the @code{pager}: @example mysql> pager less -n -i -S @end example @item From the above do note the option '-S'. You may find it very useful when browsing the results; try the option with horizontal output (end commands with '\g', or ';') and with vertical output (end commands with Loading @@ -22234,8 +22235,7 @@ readable. You can swith the mode between on and off within the interactive less with '-S'. See the 'h' for more help about less. @item Last (unless you already understood this from the above examples ;) you can combine very complex ways to handle the results, for example the You can combine very complex ways to handle the results, for example the following would send the results to two files in two different directories, on two different hard-disks mounted on /dr1 and /dr2, yet let the results still be seen on the screen via less: Loading @@ -22244,7 +22244,8 @@ mysql> pager cat | tee /dr1/tmp/res.txt | \ tee /dr2/tmp/res2.txt | less -n -i -S @end example @item @end itemize You can also combine the two functions above; have the @code{tee} enabled, @code{pager} set to 'less' and you will be able to browse the results in unix 'less' and still have everything appended into a file Loading @@ -22256,10 +22257,10 @@ on the screen, where the Unix @code{tee} used with @code{pager} doesn't log quite that much. Last, but not least, the interactive @code{tee} is more handy to switch on and off, when you want to log something into a file, but want to be able to turn the feature off sometimes. @end itemize @cindex @code{prompt} command You can change the prompt in the @code{mysql} command-line client. From MySQL version 4.0.2 it is possible to change the prompt in the @code{mysql} command-line client. You can use the following prompt options: @c FIX these columnfractions have NOT been measured! Loading
Docs/manual.texi +10 −9 Original line number Diff line number Diff line Loading @@ -22185,8 +22185,6 @@ Monty 1 row in set (0.09 sec) @end example @itemize @bullet @item For logging, you can use the @code{tee} option. The @code{tee} can be started with option @code{--tee=...}, or from the command-line interactively with command @code{tee}. All the data displayed on the Loading @@ -22198,7 +22196,6 @@ used. Note that @code{tee} will flush the results into the file after each command, just before the command-line appears again waiting for the next command. @item Browsing, or searching the results in the interactive mode in Unix less, more, or any other similar program, is now possible with option @code{--pager[=...]}. Without argument, @code{mysql} client will look Loading @@ -22213,8 +22210,10 @@ the popen() function, which doesn't exist in Windows. In Windows, the @code{tee} option can be used instead, although it may not be as handy as @code{pager} can be in some situations. A few tips about @code{pager}: @itemize @bullet @item A few tips about @code{pager}: You can use it to write to a file: You can use it to write to a file: @example mysql> pager cat > /tmp/log.txt @end example Loading @@ -22223,6 +22222,8 @@ for the programs that you want to use with the @code{pager}: @example mysql> pager less -n -i -S @end example @item From the above do note the option '-S'. You may find it very useful when browsing the results; try the option with horizontal output (end commands with '\g', or ';') and with vertical output (end commands with Loading @@ -22234,8 +22235,7 @@ readable. You can swith the mode between on and off within the interactive less with '-S'. See the 'h' for more help about less. @item Last (unless you already understood this from the above examples ;) you can combine very complex ways to handle the results, for example the You can combine very complex ways to handle the results, for example the following would send the results to two files in two different directories, on two different hard-disks mounted on /dr1 and /dr2, yet let the results still be seen on the screen via less: Loading @@ -22244,7 +22244,8 @@ mysql> pager cat | tee /dr1/tmp/res.txt | \ tee /dr2/tmp/res2.txt | less -n -i -S @end example @item @end itemize You can also combine the two functions above; have the @code{tee} enabled, @code{pager} set to 'less' and you will be able to browse the results in unix 'less' and still have everything appended into a file Loading @@ -22256,10 +22257,10 @@ on the screen, where the Unix @code{tee} used with @code{pager} doesn't log quite that much. Last, but not least, the interactive @code{tee} is more handy to switch on and off, when you want to log something into a file, but want to be able to turn the feature off sometimes. @end itemize @cindex @code{prompt} command You can change the prompt in the @code{mysql} command-line client. From MySQL version 4.0.2 it is possible to change the prompt in the @code{mysql} command-line client. You can use the following prompt options: @c FIX these columnfractions have NOT been measured!