Web site designers

Chapter 8 . Command Line Interface (CLI) 149 I added the following lines to the [mysql] section of the .my.cnfconfiguration file to produce the output in Figure 8-21. [mysql] host=localhost vertical pager=/usr/bin/less Note The use of –pager won t work when using the CLI in non-interactive mode. Using tee to save output The tee command takes the entire session including input and output from a command and appends it to a file that you specify. This function can be helpful when debugging (for security purposes), or simply as an easy way to get data into a file. The switch to use this function with MySQL is –tee=. Alternately the switch can be set in the MySQL configuration file with the use of tee= For example, Figure 8-22 uses the tee function to append the session onto a file called outputfile.txt. Figure 8-22: Using the tee function to append session data to the content of a file Figure 8-23 shows session data that has been saved to the outputfile.txt file. Note If the tee option is set in a MySQL configuration file, it can be turned off by using the –no-tee switch on the command line.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision web and email hosting services

Leave a Reply