Displays information about databases, tables, columns and indexes.
Displays information about databases, tables, columns, and indexes.
@cindex @code{mysql_install_db}
@cindex @code{mysql_install_db}
@item mysql_install_db
@item mysql_install_db
...
@@ -27873,7 +27873,7 @@ shell> replace a b b a -- file1 file2 ...
...
@@ -27873,7 +27873,7 @@ shell> replace a b b a -- file1 file2 ...
@code{safe_mysqld} is the recommended way to start a @code{mysqld}
@code{safe_mysqld} is the recommended way to start a @code{mysqld}
daemon on Unix. @code{safe_mysqld} adds some safety features such as
daemon on Unix. @code{safe_mysqld} adds some safety features such as
restarting the server when an error occurs and logging runtime
restarting the server when an error occurs and logging run-time
information to a log file.
information to a log file.
Normally one should never edit the @code{safe_mysqld} script, but
Normally one should never edit the @code{safe_mysqld} script, but
...
@@ -27963,7 +27963,7 @@ edited version that you can reinstall.
...
@@ -27963,7 +27963,7 @@ edited version that you can reinstall.
@cindex scripts
@cindex scripts
@cindex @code{mysql}
@cindex @code{mysql}
@node mysql, mysqladmin, safe_mysqld, Tools
@node mysql, mysqladmin, safe_mysqld, Tools
@section The command line tool
@section The Command-line Tool
@code{mysql} is a simple SQL shell (with GNU @code{readline} capabilities).
@code{mysql} is a simple SQL shell (with GNU @code{readline} capabilities).
It supports interactive and non-interactive use. When used interactively,
It supports interactive and non-interactive use. When used interactively,
...
@@ -27981,9 +27981,9 @@ If you have problems due to insufficient memory in the client, use the
...
@@ -27981,9 +27981,9 @@ If you have problems due to insufficient memory in the client, use the
@code{mysql_use_result()} rather than @code{mysql_store_result()} to
@code{mysql_use_result()} rather than @code{mysql_store_result()} to
retrieve the result set.
retrieve the result set.
Using @code{mysql} is very easy; Just start it as follows
Using @code{mysql} is very easy. Just start it as follows:
@code{mysql database} or @code{mysql --user=user_name --password=your_password database}. Type a SQL statement, end it with @samp{;}, @samp{\g} or @samp{\G}
@code{mysql database} or @code{mysql --user=user_name --password=your_password database}. Type a SQL statement, end it with @samp{;}, @samp{\g}, or @samp{\G}
and press return/enter.
and press RETURN/ENTER.
@cindex command line options
@cindex command line options
@cindex options, command line
@cindex options, command line
...
@@ -27993,7 +27993,7 @@ and press return/enter.
...
@@ -27993,7 +27993,7 @@ and press return/enter.
@table @code
@table @code
@cindex help option
@cindex help option
@item -?, --help
@item -?, --help
Display this help and exit
Display this help and exit.
@cindex automatic rehash option
@cindex automatic rehash option
@item -A, --no-auto-rehash
@item -A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get table and field
No automatic rehashing. One has to use 'rehash' to get table and field
...
@@ -28011,10 +28011,10 @@ Directory where character sets are located.
...
@@ -28011,10 +28011,10 @@ Directory where character sets are located.
Use compression in server/client protocol.
Use compression in server/client protocol.
@cindex debug option
@cindex debug option
@item -#, --debug[=...]
@item -#, --debug[=...]
Debug log. Default is 'd:t:o,/tmp/mysql.trace'
Debug log. Default is 'd:t:o,/tmp/mysql.trace'.
@cindex database option
@cindex database option
@item -D, --database=..
@item -D, --database=..
Database to use; This is mainly useful in the @code{my.cnf} file.
Database to use. This is mainly useful in the @code{my.cnf} file.
@cindex default character set option
@cindex default character set option
@item
@item
--default-character-set=... Set the default character set.
--default-character-set=... Set the default character set.
...
@@ -28031,8 +28031,8 @@ Continue even if we get a SQL error.
...
@@ -28031,8 +28031,8 @@ Continue even if we get a SQL error.
@cindex no-named-commands option
@cindex no-named-commands option
@item -g, --no-named-commands
@item -g, --no-named-commands
Named commands are disabled. Use \* form only, or use named commands
Named commands are disabled. Use \* form only, or use named commands
only in the beginning of a line ending with a semicolon (;) Since
only in the beginning of a line ending with a semicolon (;). Since
version 10.9 the client now starts with this option ENABLED by default!
Version 10.9, the client now starts with this option ENABLED by default!
With the -g option, long format commands will still work from the first
With the -g option, long format commands will still work from the first
line, however.
line, however.
@cindex enable-named-commands option
@cindex enable-named-commands option
...
@@ -28050,7 +28050,7 @@ Connect to the given host.
...
@@ -28050,7 +28050,7 @@ Connect to the given host.
Produce HTML output.
Produce HTML output.
@cindex skip line numbers option
@cindex skip line numbers option
@item -L, --skip-line-numbers
@item -L, --skip-line-numbers
Don't write line number for errors. Useful when one want's to compare result
Don't write line number for errors. Useful when one wants to compare result
files that includes error messages
files that includes error messages
@cindex no pager option
@cindex no pager option
@item --no-pager
@item --no-pager
...
@@ -28078,7 +28078,7 @@ pagers are less, more, cat [> filename], etc. See interactive help (\h)
...
@@ -28078,7 +28078,7 @@ pagers are less, more, cat [> filename], etc. See interactive help (\h)
also. This option does not work in batch mode. Pager works only in UNIX.
also. This option does not work in batch mode. Pager works only in UNIX.
@cindex password option
@cindex password option
@item -p[password], --password[=...]
@item -p[password], --password[=...]
Password to use when connecting to server. If password is not given on
Password to use when connecting to server. If a password is not given on
the command line, you will be prompted for it. Note that if you use the
the command line, you will be prompted for it. Note that if you use the
short form @code{-p} you can't have a space between the option and the
short form @code{-p} you can't have a space between the option and the
password.
password.
...
@@ -28100,7 +28100,7 @@ Socket file to use for connection.
...
@@ -28100,7 +28100,7 @@ Socket file to use for connection.
@item -t --table
@item -t --table
Output in table format. This is default in non-batch mode.
Output in table format. This is default in non-batch mode.
@item -T, --debug-info
@item -T, --debug-info
Print some debug info at exit.
Print some debug information at exit.
@cindex tee option
@cindex tee option
@item --tee=...
@item --tee=...
Append everything into outfile. See interactive help (\h) also. Does not
Append everything into outfile. See interactive help (\h) also. Does not
...
@@ -28171,7 +28171,7 @@ From the above, pager only works in UNIX.
...
@@ -28171,7 +28171,7 @@ From the above, pager only works in UNIX.
The @code{status} command gives you some information about the
The @code{status} command gives you some information about the
connection and the server you are using. If you are running in the
connection and the server you are using. If you are running in the
@code{--safe-updates} mode, @code{status} will also print the values for
@code{--safe-updates} mode, @code{status} will also print the values for
the @code{mysql} variables that affects your queries.
the @code{mysql} variables that affect your queries.
@cindex @code{safe-mode} command
@cindex @code{safe-mode} command
A useful startup option for beginners (introduced in @strong{MySQL} Version 3.23.11) is
A useful startup option for beginners (introduced in @strong{MySQL} Version 3.23.11) is
...
@@ -28192,7 +28192,7 @@ The effect of the above is:
...
@@ -28192,7 +28192,7 @@ The effect of the above is:
@itemize @bullet
@itemize @bullet
@item
@item
You are not allowed to do an @code{UPDATE} or @code{DELETE} statements
You are not allowed to do an @code{UPDATE} or @code{DELETE} statement
if you don't have a key constraint in the @code{WHERE} part. One can,
if you don't have a key constraint in the @code{WHERE} part. One can,
however, force an @code{UPDATE/DELETE} by using @code{LIMIT}:
however, force an @code{UPDATE/DELETE} by using @code{LIMIT}:
@example
@example
...
@@ -28271,9 +28271,9 @@ the same time.
...
@@ -28271,9 +28271,9 @@ the same time.
@cindex server administration
@cindex server administration
@cindex @code{mysladmn}
@cindex @code{mysladmn}
@node mysqladmin, mysqldump, mysql, Tools
@node mysqladmin, mysqldump, mysql, Tools
@section Administering a MySQL server
@section Administering a MySQL Server
Utility for performing administrative operations. The syntax is:
A utility for performing administrative operations. The syntax is: