Give the syntax of GRANT commands?

Answer Posted / rajan vardawaj

The generic syntax for GRANT is as following GRANT [rights]
on [database] TO [username@hostname] IDENTIFIED BY
[password] Now rights can be: a) ALL privilages b)
Combination of CREATE, DROP, SELECT, INSERT, UPDATE and
DELETE etc. We can grant rights on all databse by usingh *.*
or some specific database by database.* or a specific table
by database.table_name.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are date and time data types?

752


What is datadir?

654


What is data node in mysql cluster?

721


What do ddl, dml, and dcl stand for?

673


Explain the architecture models of SQL Server?

2104


How to use count function in mysql?

701


What is current version of mysql?

704


How do I run mysql from command line?

739


Write a command to view mysql database table structure?

741


How to decrement dates by 1 in mysql?

751


In which language mysql has been written?

1077


write a query to mysql in safe mode and to change the root password

754


What is the full form of mysql?

756


What are all the Common SQL Function?

795


Is mysql query case sensitive?

726