REVOKE <privileges>

    GrantStmt

    PrivElemList

    REVOKE <privileges> - 图2

    PrivType

    REVOKE <privileges> - 图4

    ObjectType

    PrivLevel

    UserSpecList

    REVOKE <privileges> - 图7

    1. CREATE USER 'newuser' IDENTIFIED BY 'mypassword';
    1. Query OK, 1 row affected (0.02 sec)
    1. GRANT ALL ON test.* TO 'newuser';
      1. +-------------------------------------------------+
      2. | Grants for newuser@% |
      3. +-------------------------------------------------+
      4. | GRANT USAGE ON *.* TO 'newuser'@'%' |
      5. | GRANT ALL PRIVILEGES ON test.* TO 'newuser'@'%' |
      6. +-------------------------------------------------+
      7. 2 rows in set (0.00 sec)
        1. Query OK, 0 rows affected (0.03 sec)
        1. SHOW GRANTS FOR 'newuser';
        1. DROP USER 'newuser';
        1. Query OK, 0 rows affected (0.14 sec)
        1. SHOW GRANTS FOR 'newuser';
        1. ERROR 1141 (42000): There is no such grant defined for user 'newuser' on host '%'