SQL User Privileges

Functions

  • Select - table. EX: "SELECT VERSION(), CURRENT_DATE;" Syntax:

    SELECT what
    FROM tablename
    WHERE conditions

    The SELECT condition allows selection of columns such as "colname1, colname2". The WHERE condition allows the selection of specific rows (items).

    EX: SELECT * FROM tablename
  • Insert - Create tables
  • Update - table
  • Delete - table
  • Index - Used to create or remove indexes for tables.
  • Alter - Used for tables, allows the use of the "ALTER TABLE" command.
  • Create - Make new database, table, or index.
  • Drop - Remove database or table.
  • Grant - Allows a user to give other users the privilege that they have. Used to grant access to databases or tables.
  • References - Database or table.
  • Reload - Have the database engine re-read the grant tables.
  • Shutdown
  • Process
  • File - Can read and write files on the SQL server using "SELECT...INTO OUTFILE" or "LOAD DATA INFILE".

Specific functions

  • LOAD
  • DATA
  • INFILE

Additional Commands

MySQL Reference Contents Page