1MYSQLSHOW(1)                 MySQL Database System                MYSQLSHOW(1)
2
3
4

NAME

6       mysqlshow - display database, table, and column information
7

SYNOPSIS

9       mysqlshow [options] [db_name [tbl_name [col_name]]]
10

DESCRIPTION

12       The mysqlshow client can be used to quickly see which databases exist,
13       their tables, or a table's columns or indexes.
14
15       mysqlshow provides a command-line interface to several SQL SHOW
16       statements. See Section 13.7.5, “SHOW Syntax”. The same information can
17       be obtained by using those statements directly. For example, you can
18       issue them from the mysql client program.
19
20       Invoke mysqlshow like this:
21
22           shell> mysqlshow [options] [db_name [tbl_name [col_name]]]
23
24       ·   If no database is given, a list of database names is shown.
25
26       ·   If no table is given, all matching tables in the database are
27           shown.
28
29       ·   If no column is given, all matching columns and column types in the
30           table are shown.
31
32       The output displays only the names of those databases, tables, or
33       columns for which you have some privileges.
34
35       If the last argument contains shell or SQL wildcard characters (“*”,
36       “?”, “%”, or “_”), only those names that are matched by the wildcard
37       are shown. If a database name contains any underscores, those should be
38       escaped with a backslash (some Unix shells require two) to get a list
39       of the proper tables or columns.  “*” and “?”  characters are converted
40       into SQL “%” and “_” wildcard characters. This might cause some
41       confusion when you try to display the columns for a table with a “_” in
42       the name, because in this case, mysqlshow shows you only the table
43       names that match the pattern. This is easily fixed by adding an extra
44       “%” last on the command line as a separate argument.
45
46       mysqlshow supports the following options, which can be specified on the
47       command line or in the [mysqlshow] and [client] groups of an option
48       file.  mysqlshow also supports the options for processing option files
49       described at Section 4.2.3.4, “Command-Line Options that Affect Option-
50       File Handling”.
51
52       ·   --help, -?
53
54           Display a help message and exit.
55
56       ·   --bind-address=ip_address
57
58           On a computer having multiple network interfaces, this option can
59           be used to select which interface is employed when connecting to
60           the MySQL server.
61
62           This option is supported only in the version of mysqlshow that is
63           supplied with MySQL Cluster, beginning with MySQL Cluster NDB
64           6.3.4. It is not available in standard MySQL 5.1 releases.
65
66       ·   --character-sets-dir=path
67
68           The directory where character sets are installed. See Section 10.5,
69           “Character Set Configuration”.
70
71       ·   --compress, -C
72
73           Compress all information sent between the client and the server if
74           both support compression.
75
76       ·   --count
77
78           Show the number of rows per table. This can be slow for non-MyISAM
79           tables.
80
81       ·   --debug[=debug_options], -# [debug_options]
82
83           Write a debugging log. A typical debug_options string is
84           'd:t:o,file_name'. The default is 'd:t:o'.
85
86       ·   --debug-check
87
88           Print some debugging information when the program exits. This
89           option was added in MySQL 5.1.21.
90
91       ·   --debug-info
92
93           Print debugging information and memory and CPU usage statistics
94           when the program exits. This option was added in MySQL 5.1.14.
95
96       ·   --default-character-set=charset_name
97
98           Use charset_name as the default character set. See Section 10.5,
99           “Character Set Configuration”.
100
101       ·   --host=host_name, -h host_name
102
103           Connect to the MySQL server on the given host.
104
105       ·   --keys, -k
106
107           Show table indexes.
108
109       ·   --password[=password], -p[password]
110
111           The password to use when connecting to the server. If you use the
112           short option form (-p), you cannot have a space between the option
113           and the password. If you omit the password value following the
114           --password or -p option on the command line, mysqlshow prompts for
115           one.
116
117           Specifying a password on the command line should be considered
118           insecure. See Section 6.1.2.1, “End-User Guidelines for Password
119           Security”. You can use an option file to avoid giving the password
120           on the command line.
121
122       ·   --pipe, -W
123
124           On Windows, connect to the server using a named pipe. This option
125           applies only if the server supports named-pipe connections.
126
127       ·   --port=port_num, -P port_num
128
129           The TCP/IP port number to use for the connection.
130
131       ·   --protocol={TCP|SOCKET|PIPE|MEMORY}
132
133           The connection protocol to use for connecting to the server. It is
134           useful when the other connection parameters normally would cause a
135           protocol to be used other than the one you want. For details on the
136           permissible values, see Section 4.2.2, “Connecting to the MySQL
137           Server”.
138
139       ·   --show-table-type, -t
140
141           Show a column indicating the table type, as in SHOW FULL TABLES.
142           The type is BASE TABLE or VIEW.
143
144       ·   --socket=path, -S path
145
146           For connections to localhost, the Unix socket file to use, or, on
147           Windows, the name of the named pipe to use.
148
149       ·   --ssl*
150
151           Options that begin with --ssl specify whether to connect to the
152           server using SSL and indicate where to find SSL keys and
153           certificates. See Section 6.3.6.4, “SSL Command Options”.
154
155       ·   --status, -i
156
157           Display extra information about each table.
158
159       ·   --user=user_name, -u user_name
160
161           The MySQL user name to use when connecting to the server.
162
163       ·   --verbose, -v
164
165           Verbose mode. Print more information about what the program does.
166           This option can be used multiple times to increase the amount of
167           information.
168
169       ·   --version, -V
170
171           Display version information and exit.
172
174       Copyright © 1997, 2013, Oracle and/or its affiliates. All rights
175       reserved.
176
177       This documentation is free software; you can redistribute it and/or
178       modify it only under the terms of the GNU General Public License as
179       published by the Free Software Foundation; version 2 of the License.
180
181       This documentation is distributed in the hope that it will be useful,
182       but WITHOUT ANY WARRANTY; without even the implied warranty of
183       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
184       General Public License for more details.
185
186       You should have received a copy of the GNU General Public License along
187       with the program; if not, write to the Free Software Foundation, Inc.,
188       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
189       http://www.gnu.org/licenses/.
190
191

SEE ALSO

193       For more information, please refer to the MySQL Reference Manual, which
194       may already be installed locally and which is also available online at
195       http://dev.mysql.com/doc/.
196

AUTHOR

198       Oracle Corporation (http://dev.mysql.com/).
199
200
201
202MySQL 5.1                         11/04/2013                      MYSQLSHOW(1)
Impressum