Oracle 5.0 Reference Manual page 292

Table of Contents

Advertisement

4.5.1.2.
Commands
mysql
sends each SQL statement that you issue to the server to be executed. There is also a set of
mysql
commands that
prompt:
mysql>
help
List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
?
(\?) Synonym for `help'.
clear
(\c) Clear command.
connect
(\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
edit
(\e) Edit command with $EDITOR.
ego
(\G) Send command to mysql server, display result vertically.
exit
(\q) Exit mysql. Same as quit.
go
(\g) Send command to mysql server.
help
(\h) Display this help.
nopager
(\n) Disable pager, print to stdout.
notee
(\t) Don't write into outfile.
pager
(\P) Set PAGER [to_pager]. Print the query results via PAGER.
print
(\p) Print current command.
prompt
(\R) Change your mysql prompt.
quit
(\q) Quit mysql.
rehash
(\#) Rebuild completion hash.
source
(\.) Execute an SQL script file. Takes a file name as an argument.
status
(\s) Get status information from the server.
system
(\!) Execute a system shell command.
tee
(\T) Set outfile [to_outfile]. Append everything into given
use
(\u) Use another database. Takes database name as argument.
charset
(\C) Switch to another charset. Might be needed for processing
warnings
(\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.
For server side help, type 'help contents'
Each command has both a long and short form. The long form is not case sensitive; the short form is.
The long form can be followed by an optional semicolon terminator, but the short form should not.
The use of short-form commands within multi-line
help
[arg],
Display a help message listing the available
If you provide an argument to the
server-side help from the contents of the MySQL Reference Manual. For more information, see
Section 4.5.1.4,
charset
Change the default character set and issue a
to remain synchronized on the client and server if
is not recommended), because the specified character set is used for reconnects. This command
was added in MySQL 5.0.19.
clear,
Clear the current input. Use this if you change your mind about executing the statement that you are
entering.
connect [db_name
— The MySQL Command-Line Tool
mysql
itself interprets. For a list of these commands, type
mysql
outfile.
binlog with multi-byte charsets.
\h
[arg],
\?
"mysql
Server-Side
charset_name,
\C charset_name
\c
host_name]],
/* ... */
[arg],
? [arg]
commands.
mysql
command,
help
mysql
Help".
SET NAMES
mysql
\r [db_name host_name]]
272
or
help
comments is not supported.
uses it as a search string to access
statement. This enables the character set
is run with auto-reconnect enabled (which
at the
\h
mysql>

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents