Oracle 5.0 Reference Manual page 333

Table of Contents

Advertisement

mysqlshow
provides a command-line interface to several SQL
mysqlshow
"SHOW
Syntax". The same information can be obtained by using those statements directly. For
example, you can issue them from the
Invoke
like this:
mysqlshow
shell>
mysqlshow [options] [db_name [tbl_name [col_name]]]
• If no database is given, a list of database names is shown.
• If no table is given, all matching tables in the database are shown.
• If no column is given, all matching columns and column types in the table are shown.
The output displays only the names of those databases, tables, or columns for which you have some
privileges.
If the last argument contains shell or SQL wildcard characters ("*", "?", "%", or "_"), 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. "*" and "?" characters are converted into SQL "%" and "_" wildcard characters. This might
cause some confusion when you try to display the columns for a table with a "_" in the name, because
in this case,
mysqlshow
adding an extra "%" last on the command line as a separate argument.
supports the following options, which can be specified on the command line or in the
mysqlshow
and
[mysqlshow]
[client]
processing option files described at
Handling".
Table 4.7.
mysqlshow
Format
Option File
--
compress [314]
compress [314]
--count [314]
count [314]
--
debug [314]
debug[=debug_options] [314]
--default-
default-character-
character-
set [314]
set=charset_name [314]
--help [314]
--
host [314]
host=host_name [314]
--keys [314]
keys [314]
--
password [314]
password[=password] [314]
--pipe [315]
--
port [315]
port=port_num [315]
--
protocol [315]
protocol=type [315]
--show-table-
type [315]
— Display Database, Table, and Column Information
client program.
mysql
shows you only the table names that match the pattern. This is easily fixed by
groups of an option file.
Section 4.2.3.4, "Command-Line Options that Affect Option-File
Options
Description
Compress all information sent between the client
and the server
Show the number of rows per table
Write a debugging log
Use charset_name as the default character set
Display help message and exit
Connect to the MySQL server on the given host
Show table indexes
The password to use when connecting to the
server
On Windows, connect to server using a named
pipe
The TCP/IP port number to use for the connection
The connection protocol to use
Show a column indicating the table type
313
statements. See
SHOW
also supports the options for
mysqlshow
Section 13.7.5,
Introduced
5.0.6
5.0.4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents