Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Give the syntax of GRANT commands?

Answers were Sorted based on User's Feedback



Give the syntax of GRANT commands?..

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

Give the syntax of GRANT commands?..

Answer / kamal

GRANT ALL on *.databasename to root identified by 123456

Is This Answer Correct ?    4 Yes 0 No

Give the syntax of GRANT commands?..

Answer / sandeep kumar

GRANT ALL ON mydb.mytbl TO 'someuser'@'somehost';
GRANT SELECT, INSERT ON mydb.mytbl TO 'someuser'@'somehost';

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More MySQL Interview Questions

What is pdo mysql?

0 Answers  


Why are function needed?

0 Answers  


What is a tinyint in mysql?

0 Answers  


Write a query to create a database and a table?

0 Answers  


How can we run batch mode in mysql?

0 Answers  


How do I backup mysql database on linux?

0 Answers  


How do I view data in mysql workbench?

0 Answers  


What are the purposes of using enum and set data types?

0 Answers  


how to get only updated, deleted , inserted records after certain interval time in mysql with out using triggers...

0 Answers  


What are the two types of queries?

0 Answers  


What is mysql used for?

0 Answers  


What is the use of mysqli_query?

0 Answers  


Categories