| | 93 | |
| | 94 | == Connection information == |
| | 95 | |
| | 96 | To get more information on the connection to the database, use {{{--print-connection}}}, for example |
| | 97 | {{{ |
| | 98 | user@machine> user@machine> rootifysql -d -n --print-connection query.sql |
| | 99 | [...] |
| | 100 | ------------------------ Rootify SQL ------------------------- |
| | 101 | [...] |
| | 102 | Compression of database connection is ON |
| | 103 | Connection to databases is ENCRYPTED (DHE-RSA-AES256-SHA) |
| | 104 | [...] |
| | 105 | -------------------------------------------------------------- |
| | 106 | |
| | 107 | Bytes_sent 398 |
| | 108 | Bytes_received 546 |
| | 109 | }}} |
| | 110 | |
| | 111 | Note that this data is retrieved through additional requests, which in principle slow down the execution time and add additional traffic to the connection. |
| | 112 | |
| | 113 | == Writing to an ASCII file == |
| | 114 | |
| | 115 | We can redirect the result of the query to an ASCII file by |
| | 116 | {{{ |
| | 117 | rootifysql -v 0 -d -n query.sql > output.txt |
| | 118 | }}} |
| | 119 | |
| | 120 | A verbosity level of 0 ({{{-v 0}}}) is required to turn off all the other output to standard out. |
| | 121 | |
| | 122 | If you want to keep it you can directly write to a file by |
| | 123 | |
| | 124 | {{{ |
| | 125 | rootifysql -n query.sql -w output.txt |
| | 126 | }}} |
| | 127 | |
| | 128 | Here {{{-w}}} is a shortcut to {{{--write}}}. |
| | 129 | |
| | 130 | == Writing to a root-file == |