Oracle 5.0 Reference Manual page 1203

Table of Contents

Advertisement

The
SHOW COUNT(*) ERRORS
number from the
SHOW COUNT(*) ERRORS;
SELECT @@error_count;
SHOW ERRORS
respects, they are similar to
cannot display information for more than
ERRORS
error_count
exceeds
max_error_count
For more information, see
13.7.5.15.
SHOW FUNCTION CODE
SHOW FUNCTION CODE
This statement is similar to
"SHOW PROCEDURE CODE
13.7.5.16.
SHOW FUNCTION STATUS
SHOW FUNCTION STATUS
[LIKE 'pattern' | WHERE expr]
This statement is similar to
Section 13.7.5.26,
13.7.5.17.
SHOW GRANTS
SHOW GRANTS [FOR user]
This statement lists the
that are granted to a MySQL user account. The account is named using the same format as for the
statement; for example, 'jeffrey'@'localhost'. If you specify only the user name part
GRANT
of the account name, a host name part of
account names, see
mysql>
SHOW GRANTS FOR 'root'@'localhost';
+---------------------------------------------------------------------+
| Grants for root@localhost
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+
To list the privileges granted to the account that you are using to connect to the server, you can use
any of the following statements:
SHOW GRANTS;
SHOW GRANTS FOR CURRENT_USER;
SHOW GRANTS FOR CURRENT_USER();
As of MySQL 5.0.24, if
used in
DEFINER
DEFINER), the grants displayed are those of the definer and not the invoker.
SHOW GRANTS
might be available to the account, but they are not displayed. For example, if an anonymous account
exists, the named account might be able to use its privileges, but
SHOW GRANTS
privileges for the current user.
13.7.5.18.
SHOW INDEX
statement displays the number of errors. You can also retrieve this
[450]
error_count
and
[450]
error_count
SHOW WARNINGS
[450]
can exceed the value of
[468].
Section 13.7.5.37,
Syntax
func_name
SHOW PROCEDURE CODE
Syntax".
SHOW FUNCTION CODE
Syntax
SHOW PROCEDURE STATUS
"SHOW PROCEDURE STATUS
Syntax
statement or statements that must be issued to duplicate the privileges
GRANT
Section 13.7.1.3,
SHOW GRANTS FOR CURRENT_USER
context, such as within a stored procedure that is defined with
displays only the privileges granted explicitly to the named account. Other privileges
requires the
[578]
SELECT
Syntax
Syntax
SHOW
variable:
apply only to errors, not warnings or notes. In other
and
warning_count
max_error_count
max_error_count
"SHOW WARNINGS
but for stored functions. See
was added in MySQL 5.0.17.
but for stored functions. See
Syntax".
is used. For additional information about specifying
'%'
"GRANT
Syntax".
privilege for the
mysql
1183
[507]. In particular,
[468]
messages, and
[468]
if the number of errors
Syntax".
Section 13.7.5.25,
|
(or any of the equivalent syntaxes) is
SQL SECURITY
will not display them.
SHOW GRANTS
database, except to see the
SHOW

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents