2 .\" Title: \fBmysqlshow\fR
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
6 .\" Manual: MySQL Database System
10 .TH "\FBMYSQLSHOW\FR" "1" "11/04/2013" "MySQL 5\&.1" "MySQL Database System"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 .\" databases: displaying
32 .\" displaying: database information
33 .\" tables: displaying
34 .\" columns: displaying
35 .\" showing: database information
37 mysqlshow \- display database, table, and column information
39 .HP \w'\fBmysqlshow\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIdb_name\fR\fR\fB\ [\fR\fB\fItbl_name\fR\fR\fB\ [\fR\fB\fIcol_name\fR\fR\fB]]]\fR\ 'u
40 \fBmysqlshow [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB [\fR\fB\fIcol_name\fR\fR\fB]]]\fR
45 client can be used to quickly see which databases exist, their tables, or a table\*(Aqs columns or indexes\&.
48 provides a command\-line interface to several SQL
51 Section\ \&13.7.5, \(lqSHOW Syntax\(rq\&. The same information can be obtained by using those statements directly\&. For example, you can issue them from the
63 shell> \fBmysqlshow [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB [\fR\fB\fItbl_name\fR\fR\fB [\fR\fB\fIcol_name\fR\fR\fB]]]\fR
77 If no database is given, a list of database names is shown\&.
88 If no table is given, all matching tables in the database are shown\&.
99 If no column is given, all matching columns and column types in the table are shown\&.
102 The output displays only the names of those databases, tables, or columns for which you have some privileges\&.
104 If the last argument contains shell or SQL wildcard characters (\(lq*\(rq,
107 \(lq_\(rq), only those names that are matched by the wildcard are shown\&. If a database name contains any underscores, those should be escaped with a backslash (some Unix shells require two) to get a list of the proper tables or columns\&.
111 characters are converted into SQL
115 wildcard characters\&. This might cause some confusion when you try to display the columns for a table with a
117 in the name, because in this case,
119 shows you only the table names that match the pattern\&. This is easily fixed by adding an extra
121 last on the command line as a separate argument\&.
124 supports the following options, which can be specified on the command line or in the
128 groups of an option file\&.
130 also supports the options for processing option files described at
131 Section\ \&4.2.3.4, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
141 .\" mysqlshow: help option
142 .\" help option: mysqlshow
146 Display a help message and exit\&.
157 .\" mysqlshow: bind-address option
158 .\" bind-address option: mysqlshow
159 \fB\-\-bind\-address=\fR\fB\fIip_address\fR\fR
161 On a computer having multiple network interfaces, this option can be used to select which interface is employed when connecting to the MySQL server\&.
163 This option is supported only in the version of
165 that is supplied with MySQL Cluster, beginning with MySQL Cluster NDB 6\&.3\&.4\&. It is not available in standard MySQL 5\&.1 releases\&.
176 .\" mysqlshow: character-sets-dir option
177 .\" character-sets-dir option: mysqlshow
178 \fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
180 The directory where character sets are installed\&. See
181 Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
192 .\" mysqlshow: compress option
193 .\" compress option: mysqlshow
197 Compress all information sent between the client and the server if both support compression\&.
208 .\" mysqlshow: count option
209 .\" count option: mysqlshow
212 Show the number of rows per table\&. This can be slow for non\-MyISAM
224 .\" mysqlshow: debug option
225 .\" debug option: mysqlshow
226 \fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
227 \fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
229 Write a debugging log\&. A typical
232 \*(Aqd:t:o,\fIfile_name\fR\*(Aq\&. The default is
244 .\" mysqlshow: debug-check option
245 .\" debug-check option: mysqlshow
246 \fB\-\-debug\-check\fR
248 Print some debugging information when the program exits\&. This option was added in MySQL 5\&.1\&.21\&.
259 .\" mysqlshow: debug-info option
260 .\" debug-info option: mysqlshow
261 \fB\-\-debug\-info\fR
263 Print debugging information and memory and CPU usage statistics when the program exits\&. This option was added in MySQL 5\&.1\&.14\&.
274 .\" mysqlshow: default-character-set option
275 .\" default-character-set option: mysqlshow
276 \fB\-\-default\-character\-set=\fR\fB\fIcharset_name\fR\fR
280 as the default character set\&. See
281 Section\ \&10.5, \(lqCharacter Set Configuration\(rq\&.
292 .\" mysqlshow: host option
293 .\" host option: mysqlshow
294 \fB\-\-host=\fR\fB\fIhost_name\fR\fR,
295 \fB\-h \fR\fB\fIhost_name\fR\fR
297 Connect to the MySQL server on the given host\&.
308 .\" mysqlshow: keys option
309 .\" keys option: mysqlshow
313 Show table indexes\&.
324 .\" mysqlshow: password option
325 .\" password option: mysqlshow
326 \fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
327 \fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
329 The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
331 have a space between the option and the password\&. If you omit the
337 option on the command line,
341 Specifying a password on the command line should be considered insecure\&. See
342 Section\ \&6.1.2.1, \(lqEnd-User Guidelines for Password Security\(rq\&. You can use an option file to avoid giving the password on the command line\&.
353 .\" mysqlshow: pipe option
354 .\" pipe option: mysqlshow
358 On Windows, connect to the server using a named pipe\&. This option applies only if the server supports named\-pipe connections\&.
369 .\" mysqlshow: port option
370 .\" port option: mysqlshow
371 \fB\-\-port=\fR\fB\fIport_num\fR\fR,
372 \fB\-P \fR\fB\fIport_num\fR\fR
374 The TCP/IP port number to use for the connection\&.
385 .\" mysqlshow: protocol option
386 .\" protocol option: mysqlshow
387 \fB\-\-protocol={TCP|SOCKET|PIPE|MEMORY}\fR
389 The connection protocol to use for connecting to the server\&. It is useful when the other connection parameters normally would cause a protocol to be used other than the one you want\&. For details on the permissible values, see
390 Section\ \&4.2.2, \(lqConnecting to the MySQL Server\(rq\&.
401 .\" mysqlshow: show-table-type option
402 .\" show-table-type option: mysqlshow
403 \fB\-\-show\-table\-type\fR,
406 Show a column indicating the table type, as in
407 SHOW FULL TABLES\&. The type is
421 .\" mysqlshow: socket option
422 .\" socket option: mysqlshow
423 \fB\-\-socket=\fR\fB\fIpath\fR\fR,
424 \fB\-S \fR\fB\fIpath\fR\fR
427 localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&.
438 .\" mysqlshow: SSL options
439 .\" SSL options: mysqlshow
442 Options that begin with
444 specify whether to connect to the server using SSL and indicate where to find SSL keys and certificates\&. See
445 Section\ \&6.3.6.4, \(lqSSL Command Options\(rq\&.
456 .\" mysqlshow: status option
457 .\" status option: mysqlshow
461 Display extra information about each table\&.
472 .\" mysqlshow: user option
473 .\" user option: mysqlshow
474 \fB\-\-user=\fR\fB\fIuser_name\fR\fR,
475 \fB\-u \fR\fB\fIuser_name\fR\fR
477 The MySQL user name to use when connecting to the server\&.
488 .\" mysqlshow: verbose option
489 .\" verbose option: mysqlshow
493 Verbose mode\&. Print more information about what the program does\&. This option can be used multiple times to increase the amount of information\&.
504 .\" mysqlshow: version option
505 .\" version option: mysqlshow
509 Display version information and exit\&.
514 Copyright \(co 1997, 2013, Oracle and/or its affiliates. All rights reserved.
516 This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
518 This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
520 You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
523 For more information, please refer to the MySQL Reference Manual,
524 which may already be installed locally and which is also available
525 online at http://dev.mysql.com/doc/.
527 Oracle Corporation (http://dev.mysql.com/).