|
| 1 | +β
= Implemented, directly or indrectly available |
| 2 | +π€ = Not Implemented / Maybe later? |
| 3 | +π = Decided agains implementation, not usefull |
| 4 | +β = Does not apply / will never be implemented |
| 5 | + |
| 6 | +SQLite3 |
| 7 | + |
| 8 | +π€ -A ARGS... run ".archive ARGS" and exit |
| 9 | +β -append append the database to the end of the file |
| 10 | +π -ascii set output mode to 'ascii' |
| 11 | +β
-bail stop after hitting an error |
| 12 | +π€ -batch force batch I/O |
| 13 | +β
-box set output mode to 'box' |
| 14 | +β
-column set output mode to 'column' |
| 15 | +β
-cmd COMMAND run "COMMAND" before reading stdin |
| 16 | +β
-csv set output mode to 'csv' |
| 17 | +β -deserialize open the database using sqlite3_deserialize() |
| 18 | +β
-echo print commands before execution |
| 19 | +β
-init FILENAME read/process named file |
| 20 | +β
-[no]header turn headers on or off |
| 21 | +β
-help show this message |
| 22 | +β
-html set output mode to HTML |
| 23 | +π -interactive force interactive I/O |
| 24 | +β
-json set output mode to 'json' |
| 25 | +β
-line set output mode to 'line' |
| 26 | +β
-list set output mode to 'list' |
| 27 | +β -lookaside SIZE N use N entries of SZ bytes for lookaside memory |
| 28 | +β
-markdown set output mode to 'markdown' |
| 29 | +β -maxsize N maximum size for a --deserialize database |
| 30 | +β -memtrace trace all memory allocations and deallocations |
| 31 | +β -mmap N default mmap size set to N |
| 32 | +β
-newline SEP set output row separator. Default: '\n' |
| 33 | +β -nofollow refuse to open symbolic links to database files |
| 34 | +β
-nullvalue TEXT set text string for NULL values. Default '' |
| 35 | +β -pagecache SIZE N use N slots of SZ bytes each for page cache memory |
| 36 | +β
-quote set output mode to 'quote' |
| 37 | +β -readonly open the database read-only |
| 38 | +β
-separator SEP set output column separator. Default: '|' |
| 39 | +π -stats print memory stats before each finalize |
| 40 | +β
-table set output mode to 'table' |
| 41 | +β
-tabs set output mode to 'tabs' |
| 42 | +β
-version show SQLite version |
| 43 | +β -vfs NAME use NAME as the default VFS |
| 44 | +β -zip open the file as a ZIP Archive |
| 45 | + |
| 46 | + |
| 47 | +PostgreSQL |
| 48 | + |
| 49 | +β
-c, --command=COMMAND run only single command (SQL or internal) and exit |
| 50 | +β
-d, --dbname=DBNAME database name to connect to (default: "ubuntu") |
| 51 | +β
-f, --file=FILENAME execute commands from file, then exit |
| 52 | +β
-l, --list list available databases, then exit |
| 53 | +π€ -v, --set=, --variable=NAME=VALUE |
| 54 | +π€ set psql variable NAME to VALUE |
| 55 | +π€ (e.g., -v ON_ERROR_STOP=1) |
| 56 | +β
-V, --version output version information, then exit |
| 57 | +π -X, --no-psqlrc do not read startup file (~/.psqlrc) |
| 58 | +π -1 ("one"), --single-transaction |
| 59 | +π execute as a single transaction (if non-interactive) |
| 60 | +β
-?, --help[=options] show this help, then exit |
| 61 | +π --help=commands list backslash commands, then exit |
| 62 | +π --help=variables list special variables, then exit |
| 63 | + |
| 64 | +Input and output options: |
| 65 | +π -a, --echo-all echo all input from script |
| 66 | +π -b, --echo-errors echo failed commands |
| 67 | +β
-e, --echo-queries echo commands sent to server |
| 68 | +π -E, --echo-hidden display queries that internal commands generate |
| 69 | +π€ -L, --log-file=FILENAME send session log to file |
| 70 | +π€ -E, --echo-hidden display queries that internal commands generate |
| 71 | +π€ -n, --no-readline disable enhanced command line editing (readline) |
| 72 | +β
-o, --output=FILENAME send query results to file (or |pipe) |
| 73 | +β
-q, --quiet run quietly (no messages, only query output) |
| 74 | +π€ -s, --single-step single-step mode (confirm each query) |
| 75 | +β -S, --single-line single-line mode (end of line terminates SQL command) |
| 76 | + |
| 77 | +Output format options: |
| 78 | +π€ -A, --no-align unaligned table output mode |
| 79 | +β
-F, --field-separator=STRING |
| 80 | +β
field separator for unaligned output (default: "|") |
| 81 | +β
-H, --html HTML table output mode |
| 82 | +π€ -P, --pset=VAR[=ARG] set printing option VAR to ARG (see \pset command) |
| 83 | +β
-R, --record-separator=STRING |
| 84 | +β
record separator for unaligned output (default: newline) |
| 85 | +β
-t, --tuples-only print rows only |
| 86 | +π€ -T, --table-attr=TEXT set HTML table tag attributes (e.g., width, border) |
| 87 | +π€ -x, --expanded turn on expanded table output |
| 88 | +π -z, --field-separator-zero |
| 89 | +π set field separator for unaligned output to zero byte |
| 90 | +π -0, --record-separator-zero |
| 91 | +π set record separator for unaligned output to zero byte |
| 92 | + |
| 93 | +Connection options: |
| 94 | +β
-h, --host=HOSTNAME database server host or socket directory (default: "/var/run/postgresql") |
| 95 | +β
-p, --port=PORT database server port (default: "5432") |
| 96 | +β
-U, --username=USERNAME database user name (default: "ubuntu") |
| 97 | +π€ -w, --no-password never prompt for password |
| 98 | +β
-W, --password force password prompt (should happen automatically) |
| 99 | + |
| 100 | + |
| 101 | +mysql |
| 102 | + |
| 103 | +Usage: mysql [OPTIONS] [database] |
| 104 | +β
-?, --help Display this help and exit. |
| 105 | +π -I, --help Synonym for -? |
| 106 | +β
--auto-rehash Enable automatic rehashing. One doesn't need to use |
| 107 | +β
'rehash' to get table and field completion, but startup |
| 108 | +β
and reconnecting may take a longer time. Disable with |
| 109 | +β
--disable-auto-rehash. |
| 110 | +π€ -A, --no-auto-rehash |
| 111 | +π€ No automatic rehashing. One has to use 'rehash' to get |
| 112 | +π€ table and field completion. This gives a quicker start of |
| 113 | +π€ mysql and disables rehashing on reconnect. WARNING: |
| 114 | +π€ options deprecated; use --disable-auto-rehash instead. |
| 115 | +β
-B, --batch Don't use history file. Disable interactive behavior. |
| 116 | +β
(Enables --silent) |
| 117 | +π --character-sets-dir=name |
| 118 | +π Directory where character sets are. |
| 119 | +π --default-character-set=name |
| 120 | +π Set the default character set. |
| 121 | +β
-C, --compress Use compression in server/client protocol. |
| 122 | +π€ -#, --debug[=#] This is a non-debug version. Catch this and exit |
| 123 | +β
-D, --database=name Database to use. |
| 124 | +β
--delimiter=name Delimiter to be used. |
| 125 | +β
-e, --execute=name Execute command and quit. (Disables --force and history |
| 126 | +β
file) |
| 127 | +β
-E, --vertical Print the output of a query (rows) vertically. |
| 128 | +π€ -f, --force Continue even if we get an sql error. |
| 129 | +β
-G, --named-commands |
| 130 | +β
Enable named commands. Named commands mean this program's |
| 131 | +β
internal commands; see mysql> help . When enabled, the |
| 132 | +β
named commands can be used from any line of the query, |
| 133 | +β
otherwise only from the first line, before an enter. |
| 134 | +β
Disable with --disable-named-commands. This option is |
| 135 | +β
disabled by default. |
| 136 | +π -g, --no-named-commands |
| 137 | +π Named commands are disabled. Use \* form only, or use |
| 138 | +π named commands only in the beginning of a line ending |
| 139 | +π with a semicolon (;) Since version 10.9 the client now |
| 140 | +π starts with this option ENABLED by default! Disable with |
| 141 | +π '-G'. Long format commands still work from the first |
| 142 | +π line. WARNING: option deprecated; use |
| 143 | +π --disable-named-commands instead. |
| 144 | +π -i, --ignore-spaces Ignore space after function names. |
| 145 | +π --local-infile Enable/disable LOAD DATA LOCAL INFILE. |
| 146 | +π -b, --no-beep Turn off beep on error. |
| 147 | +β
-h, --host=name Connect to host. |
| 148 | +β
-H, --html Produce HTML output. |
| 149 | +β
-X, --xml Produce XML output |
| 150 | +β --line-numbers Write line numbers for errors. |
| 151 | +β -L, --skip-line-numbers |
| 152 | +β Don't write line number for errors. WARNING: -L is |
| 153 | +β deprecated, use long version of this option instead. |
| 154 | +β
-n, --unbuffered Flush buffer after each query. |
| 155 | +β
--column-names Write column names in results. |
| 156 | +β
-N, --skip-column-names |
| 157 | +β
Don't write column names in results. WARNING: -N is |
| 158 | +β
deprecated, use long version of this options instead. |
| 159 | +π€ -O, --set-variable=name |
| 160 | +π€ Change the value of a variable. Please note that this |
| 161 | +π€ option is deprecated; you can set variables directly with |
| 162 | +π€ --variable-name=value. |
| 163 | +π --sigint-ignore Ignore SIGINT (CTRL-C) |
| 164 | +β -o, --one-database Only update the default database. This is useful for |
| 165 | +β skipping updates to other database in the update log. |
| 166 | +π --pager[=name] Pager to use to display results. If you don't supply an |
| 167 | +π option the default pager is taken from your ENV variable |
| 168 | +π PAGER. Valid pagers are less, more, cat [> filename], |
| 169 | +π etc. See interactive help (\h) also. This option does not |
| 170 | +π work in batch mode. Disable with --disable-pager. This |
| 171 | +π option is disabled by default. |
| 172 | +π --no-pager Disable pager and print to stdout. See interactive help |
| 173 | +π (\h) also. WARNING: option deprecated; use |
| 174 | +π --disable-pager instead. |
| 175 | +β
-p, --password[=name] |
| 176 | +β
Password to use when connecting to server. If password is |
| 177 | +β
not given it's asked from the tty. |
| 178 | +β
-P, --port=# Port number to use for connection. |
| 179 | +π€ --prompt=name Set the mysql prompt to this value. |
| 180 | +β --protocol=name The protocol of connection (tcp,socket,pipe,memory). |
| 181 | +π€ -q, --quick Don't cache result, print it row by row. This may slow |
| 182 | +π€ down the server if the output is suspended. Doesn't use |
| 183 | +π€ history file. |
| 184 | +π€ -r, --raw Write fields without conversion. Used with --batch. |
| 185 | +π€ --reconnect Reconnect if the connection is lost. Disable with |
| 186 | +π€ --disable-reconnect. This option is enabled by default. |
| 187 | +β
-s, --silent Be more silent. Print results with a tab as separator, |
| 188 | +β
each row on new line. |
| 189 | +β -S, --socket=name Socket file to use for connection. |
| 190 | +π€ --ssl Enable SSL for connection (automatically enabled with |
| 191 | +π€ other flags). Disable with --skip-ssl. |
| 192 | +π€ --ssl-ca=name CA file in PEM format (check OpenSSL docs, implies |
| 193 | +π€ --ssl). |
| 194 | +π€ --ssl-capath=name CA directory (check OpenSSL docs, implies --ssl). |
| 195 | +π€ --ssl-cert=name X509 cert in PEM format (implies --ssl). |
| 196 | +π€ --ssl-cipher=name SSL cipher to use (implies --ssl). |
| 197 | +π€ --ssl-key=name X509 key in PEM format (implies --ssl). |
| 198 | +π€ --ssl-verify-server-cert |
| 199 | +π€ Verify server's "Common Name" in its cert against |
| 200 | +π€ hostname used when connecting. This option is disabled by |
| 201 | +π€ default. |
| 202 | +β
-t, --table Output in table format. |
| 203 | +π -T, --debug-info Print some debug info at exit. |
| 204 | +π --tee=name Append everything into outfile. See interactive help (\h) |
| 205 | +π also. Does not work in batch mode. Disable with |
| 206 | +π --disable-tee. This option is disabled by default. |
| 207 | +π --no-tee Disable outfile. See interactive help (\h) also. WARNING: |
| 208 | +π option deprecated; use --disable-tee instead |
| 209 | +β
-u, --user=name User for login if not current user. |
| 210 | +β -U, --safe-updates Only allow UPDATE and DELETE that uses keys. |
| 211 | +π -U, --i-am-a-dummy Synonym for option --safe-updates, -U. |
| 212 | +π€ -v, --verbose Write more. (-v -v -v gives the table output format). |
| 213 | +β
-V, --version Output version information and exit. |
| 214 | +π€ -w, --wait Wait and retry if connection is down. |
| 215 | +β
--connect_timeout=# Number of seconds before connection timeout. |
| 216 | +π€ --max_allowed_packet=# |
| 217 | +π€ Max packet length to send to, or receive from server |
| 218 | +π€ --net_buffer_length=# |
| 219 | +π€ Buffer for TCP/IP and socket communication |
| 220 | +π€ --select_limit=# Automatic limit for SELECT when using --safe-updates |
| 221 | +β --max_join_size=# Automatic limit for rows in a join when using |
| 222 | +β --safe-updates |
| 223 | +β --secure-auth Refuse client connecting to server if it uses old |
| 224 | +β (pre-4.1.1) protocol |
| 225 | +π€ --show-warnings Show warnings after every statement. |
0 commit comments