Oracle 5.0 Reference Manual page 388

Table of Contents

Advertisement

mysql_tableinfo
In MySQL 5.0 and up, the
information in the SCHEMATA, TABLES, COLUMNS, and
INFORMATION_SCHEMA
Invoke
mysql_tableinfo
shell>
mysql_tableinfo [options] db_name [db_like [tbl_like]]
The
argument indicates which database
db_name
the metadata tables. The database will be created if it does not exist. The tables will be named db,
(or tbl_status), col, and idx.
If the
or
db_like
tbl_like
generated only for databases or tables that match the patterns. These arguments default to
given.
Examples:
mysql_tableinfo info
mysql_tableinfo info world
mysql_tableinfo info mydb tmp%
Each of the commands stores information into tables in the
for all databases and tables. The second stores information for all tables in the
third stores information for tables in the
supports the following options:
mysql_tableinfo
Table 4.13.
mysql_tableinfo
Format
--clear [368]
--clear-only [369]
--col [369]
--help [368]
--
host=host_name [369]
--idx [369]
--
password=password [369]
--
port=port_num [369]
--
prefix=prefix_str [369]
--quiet [369]
--
socket=path [369]
--tbl-status [369]
--
user=user_name, [369]
[368]
--help
Display a help message and exit.
[368]
--clear
— Generate Database Metadata
INFORMATION_SCHEMA
Tables.
like this:
arguments are given, they are used as patterns and metadata is
mydb
Options
Option File
Description
clear [368]
Before populating each metadata table, drop it if it exists
clear-only [369]
Similar to --clear, but exits after dropping the metadata
tables to be populated.
col [369]
Generate column metadata into the col table
Display help message and exit
host [369]
Connect to the MySQL server on the given host
idx [369]
Generate index metadata into the idx table
password [369]
The password to use when connecting to the server -- not
optional
port [369]
The TCP/IP port number to use for the connection
prefix [369]
Add prefix_str at the beginning of each metadata table
name
quiet [369]
Be silent except for errors
socket [369]
Display version information and exit
tbl-status [369]
Use SHOW TABLE STATUS instead of SHOW TABLES
user [369]
The mysql_tableinfo user name to use when connecting
to the server
368
database contains the same kind of
STATISTICS
mysql_tableinfo
database. The first stores information
info
database that have names matching the pattern tmp%.
tables. See
Chapter 19,
should use as the location for
database. The
world
tbl
if not
%

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents