Oracle 5.0 Reference Manual page 288

Table of Contents

Advertisement

Suppose that
mysql
DELETE FROM db2.t2;
USE db2;
DROP TABLE db1.t1;
CREATE TABLE db1.t1 (i INT);
USE db1;
INSERT INTO t1 (i) VALUES(1);
CREATE TABLE db2.t1 (j INT);
If the command line is
follows:
• The
statement is executed because the default database is db1, even though the
DELETE
statement names a table in a different database.
• The
DROP TABLE
is not db1, even though the statements name a table in db1.
• The
and
INSERT
CREATE TABLE
even though the
CREATE TABLE
--pager[=command]
Use the given command for paging query output. If the command is omitted, the default pager is the
value of your
PAGER
and so forth. This option works only on Unix and only in interactive mode. To disable paging, use
[268].
skip-pager
--password[=password]
The password to use when connecting to the server. If you use the short option form (-p), you
cannot have a space between the option and the password. If you omit the
following the
--password
Specifying a password on the command line should be considered insecure. See
"End-User Guidelines for Password
password on the command line.
[268],
--pipe
-W
On Windows, connect to the server using a named pipe. This option applies only if the server
supports named-pipe connections.
--port=port_num
The TCP/IP port number to use for the connection.
--prompt=format_str
Set the prompt to the specified format. The default is mysql>. The special sequences that the
prompt can contain are described in
--protocol={TCP|SOCKET|PIPE|MEMORY}
The connection protocol to use for connecting to the server. It is useful when the other connection
parameters normally would cause a protocol to be used other than the one you want. For details on
the permissible values, see
[268],
--quick
-q
Do not cache each query result, print each row as it is received. This may slow down the server if the
output is suspended. With this option,
— The MySQL Command-Line Tool
mysql
is invoked to process this set of statements:
mysql --force --one-database
and
statements are not executed because the default database
CREATE TABLE
statements are executed because the default database is db1,
statement names a table in a different database.
[268]
environment variable. Valid pagers are less, more,
Section 4.5.1.2,
"mysql
[268],
-p[password]
[268]
or
option on the command line,
-p
Security". You can use an option file to avoid giving the
[268],
-P port_num
[268]
Section 4.5.1.2,
Section 4.2.2, "Connecting to the MySQL
mysql
268
db1,
mysql
Commands", discusses output paging further.
"mysql
Commands".
[268]
does not use the history file.
handles the input as
cat [>
filename],
value
password
prompts for one.
mysql
Section 6.1.2.1,
Server".
--

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents