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

Which is better mysql or mssql?

0 Answers  


Table A has 5 rows and table B has 0 rows Cartesian join on A,B will have----rows

2 Answers  


What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?

0 Answers  


What is the difference between the DELETE TABLE and TRUNCATE TABLE commands in MySQL?

1 Answers  


How do you know if your mysql server is alive?

0 Answers  


What is diff b/w MYISAM and INNODB storage engine. and also define the benifits and drawbacks of both storage engine

1 Answers  


What does do in mysql?

0 Answers  


How do I set user privileges in mysql?

0 Answers  


How many ways we can we find the current date using MySQL?

3 Answers  


How we can create index in mysql?

0 Answers  


What is procedures in mysql?

0 Answers  


How would you enter characters as hex numbers?

0 Answers  


Categories