Sunteți pe pagina 1din 2

+-------------------------+---------------------------------------+------------------------------------------------------+

| Privilege
| Context
| Comment
|
+-------------------------+---------------------------------------+------------------------------------------------------+
| Alter
| Tables
| To alter the
table
|
| Alter routine
| Functions,Procedures
| To alter or
drop stored functions/procedures
|
| Create
| Databases,Tables,Indexes
| To create ne
w databases and tables
|
| Create routine
| Databases
| To use CREAT
E FUNCTION/PROCEDURE
|
| Create temporary tables | Databases
| To use CREAT
E TEMPORARY TABLE
|
| Create view
| Tables
| To create ne
w views
|
| Create user
| Server Admin
| To create ne
w users
|
| Delete
| Tables
| To delete ex
isting rows
|
| Drop
| Databases,Tables
| To drop data
bases, tables, and views
|
| Event
| Server Admin
| To create, a
lter, drop and execute events
|
| Execute
| Functions,Procedures
| To execute s
tored routines
|
| File
| File access on server
| To read and
write files on the server
|
| Grant option
| Databases,Tables,Functions,Procedures | To give to o
ther users those privileges you possess |
| Index
| Tables
| To create or
drop indexes
|
| Insert
| Tables
| To insert da
ta into tables
|
| Lock tables
| Databases
| To use LOCK
TABLES (together with SELECT privilege) |
| Process
| Server Admin
| To view the
plain text of currently executing queries |
| Proxy
| Server Admin
| To make prox
y user possible
|
| References
| Databases,Tables
| To have refe
rences on tables
|
| Reload
| Server Admin
| To reload or
refresh tables, logs and privileges
|
| Replication client
| Server Admin
| To ask where
the slave or master servers are
|
| Replication slave
| Server Admin
| To read bina
ry log events from the master
|
| Select
| Tables
| To retrieve
rows from table
|
| Show databases
| Server Admin
| To see all d
atabases with SHOW DATABASES
|
| Show view
| Tables
| To see views
with SHOW CREATE VIEW
|
?

(\?) Synonym for `help'.

clear

(\c) Clear the current input statement.

connect

(\r) Reconnect to the server. Optional arguments are db and host.

delimiter (\d) Set statement delimiter.


edit

(\e) Edit command with $EDITOR.

ego
exit

(\G) Send command to mysql server, display result vertically.


(\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 outfile.

use

(\u) Use another database. Takes database name as argument.

charset (\C) Switch to another charset. Might be needed for processing binlog
with multi-byte charsets.
warnings (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.

S-ar putea să vă placă și