Give the syntax of GRANT commands?
Answers were Sorted based on User's Feedback
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 |
Answer / kamal
GRANT ALL on *.databasename to root identified by 123456
Is This Answer Correct ? | 4 Yes | 0 No |
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 |
Explain the storage engines in mysql?
What is definer in mysql trigger?
How to determine the location of the data directory?
Why mysql is used with php?
What is the difference between the DELETE TABLE and TRUNCATE TABLE commands in MySQL?
What are procedures in mysql? Explain
What is a storage engine?
How can we optimize stored procedure?
What is the maximum length of a table name, database name, and fieldname in MySQL?
3 Answers Accenture, Pioneer, TISL,
What is definer in mysql?
Is mysql a backend?
How does triggers work in mysql?