Oracle 5.0 Reference Manual page 1171

Table of Contents

Advertisement

3. Delete the account by using
DROP USER
old user created. This includes stored programs or views for which the
the dropped user. Attempts to access such objects may produce an error if they execute in definer
security context. (For information about security context, see
Programs and
13.7.1.3.
Syntax
GRANT
GRANT
priv_type
[,
priv_type
ON [object_type]
TO
user_specification
[REQUIRE {NONE |
[WITH
with_option
object_type:
TABLE
| FUNCTION
| PROCEDURE
priv_level:
*
| *.*
| db_name.*
|
db_name.tbl_name
|
tbl_name
|
db_name.routine_name
user_specification:
user
[IDENTIFIED BY [PASSWORD] 'password']
ssl_option:
SSL
| X509
| CIPHER 'cipher'
| ISSUER 'issuer'
| SUBJECT 'subject'
with_option:
GRANT OPTION
| MAX_QUERIES_PER_HOUR
| MAX_UPDATES_PER_HOUR
| MAX_CONNECTIONS_PER_HOUR
| MAX_USER_CONNECTIONS
The
statement grants privileges to MySQL user accounts.
GRANT
account characteristics such as use of secure connections and limits on access to server resources. To
use GRANT, you must have the
you are granting.
Normally, a database administrator first uses
define its privileges and characteristics. For example:
CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'mypass';
GRANT ALL ON db1.* TO 'jeffrey'@'localhost';
GRANT SELECT ON db2.invoice TO 'jeffrey'@'localhost';
GRANT USAGE ON *.* TO 'jeffrey'@'localhost' WITH MAX_QUERIES_PER_HOUR 90;
Account Management Statements
DROP USER
Important
does not automatically close any open user sessions. Rather, in
DROP USER
the event that a user with an open session is dropped, the statement does not
take effect until that user's session is closed. Once the session is closed, the
user is dropped, and that user's next attempt to log in will fail. This is by design.
does not automatically drop or invalidate databases or objects within them that the
Views".)
[(column_list)]
[(column_list)]] ...
priv_level
[, user_specification] ...
ssl_option
[[AND] ssl_option] ...}]
...]
count
count
count
count
GRANT OPTION
to remove the
table row.
user
Section 18.5, "Access Control for Stored
GRANT
[577]
privilege, and you must have the privileges that
to create an account, then
CREATE USER
1151
attribute names
DEFINER
also serves to specify other
GRANT
to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents