Skip to content

GRANT

GRANT SELECT, UPDATE ON database_name.table_name TO 'username'@'localhost';
Query OK, 0 rows affected (0.00 sec)

The GRANT statement assigns SELECT and UPDATE privileges on the specified table in the stated database to the mentioned user. If the statement is executed successfully, MySQL will return a message indicating that the query has been executed correctly.