Explain GRANT command in MySQL.

Answer Posted / hrindows@gmail.com

When a new MySQL user is created, it requires certain privileges to perform various database operations.
GRANT command grants certain privileges to the user.
For example below statement grants permission to run SELECT and INSERT on TABLE customertable to user username@localhost.
GRANT SELECT, INSERT ON customertable TO ‘username’@’localhost’

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I setup mysql?

662


How can you create and drop view in mysql?

695


How to return query output in html format?

706


How do I edit a table in mysql?

669


What are numeric data types?

713


Does uninstalling mysql delete database?

706


How do you login to MySql using Unix shell?

802


What is mysql enterprise edition?

654


What is delimiter $$?

719


What is acid in mysql?

632


How do I start and stop mysql on windows?

683


What is mysql and mysqli?

661


Is blocked because of many connection errors mysql?

616


What is slow query log in mysql?

742


What are the disadvantages of mysql?

774