Creates table-level privileges.
CREATE TABLE Books
(
BookID SMALLINT NOT NULL PRIMARY KEY,
BookTitle VARCHAR(60) NOT NULL,
Copyright YEAR NOT NULL
)
ENGINE=INNODB;
GRANT SELECT, UPDATE
ON test.Books
TO 'user1'@'domain1.com' IDENTIFIED BY 'pw1';
drop table Books;
Related examples in the same category