Enable display of warnings after each statement. This command was added in MySQL 5.0.6.
•
pager
[command],
Enable output paging. By using the
browse or search query results in interactive mode with Unix programs such as less, more, or any
other similar program. If you specify no value for the option,
environment variable and sets the pager to that. Pager functionality works only in interactive mode.
Output paging can be enabled interactively with the
The command takes an optional argument; if given, the paging program is set to that. With no
argument, the pager is set to the pager that was set on the command line, or
was specified.
Output paging works only in Unix because it uses the
Windows. For Windows, the
as convenient as
pager
•
print,
\p
Print the current input statement without executing it.
•
prompt
[str],
\R [str]
Reconfigure the
mysql
used in the prompt are described later in this section.
If you specify the
prompt
mysql>.
•
quit,
\q
Exit mysql.
•
rehash,
\#
Rebuild the completion hash that enables database, table, and column name completion while you
are entering statements. (See the description for the
•
source
file_name,
Read the named file and executes the statements contained therein. On Windows, you can specify
path name separators as
•
status,
\s
Provide status information about the connection and the server you are using. If you are running in
[269]
--safe-updates
your queries.
•
system
command,
Execute the given command using your default command interpreter.
The
command works only in Unix.
system
•
tee
[file_name],
By using the
--tee
output. All the data displayed on the screen is appended into a given file. This can be very useful for
debugging purposes also.
its next prompt. Tee functionality works only in interactive mode.
— The MySQL Command-Line Tool
mysql
\P [command]
--pager
option can be used instead to save query output, although it is not
tee
for browsing output in some situations.
prompt to the given string. The special character sequences that can be
command with no argument,
\. file_name
or \\.
/
mode,
also prints the values for the
status
\! command
\T [file_name]
[270]
option when you invoke mysql, you can log statements and their
flushes results to the file after each statement, just before it prints
mysql
274
[268]
option when you invoke mysql, it is possible to
checks the value of the
mysql
command and disabled with nopager.
pager
function, which does not exist on
popen()
resets the prompt to the default of
mysql
--auto-rehash
PAGER
if no pager
stdout
[265]
option.)
variables that affect
mysql
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers