Explain GRANT command in MySQL.



Explain GRANT command in MySQL...

Answer / 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

More MySQL Interview Questions

how to connect a php script with the mysql database?

0 Answers  


What is mysql data directory?

0 Answers  


How can we change the name and data type of a column of a table?

9 Answers   Google,


What is difference between mysql and mysql workbench?

0 Answers  


What is the difference between procedure and function in mysql?

0 Answers  






How to check if a record exists in a mysql database php?

0 Answers  


How to get nth highest salary from table in a mysql?

0 Answers  


What are some good ideas regarding user security in MySQL?

2 Answers  


How do I select a database in mysql workbench?

0 Answers  


What are date and time data types in mysql?

0 Answers  


Is mysql case-sensitive?

0 Answers  


Can we store images in mysql database?

0 Answers  


Categories