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 |
What is sqlyog?
Is Mysql query is case sensitive?
How to enable or disable a row of a table using MySQL in struts?
at first i'm using datediff('d', a.due_date, current_date); but it takes too long to get the result but how can i subtract the current_date - a.due_date and still get the same result like when i use datediff? thank you
How do I install the latest mysql on ubuntu?
What is strict mode in mysql?
How can we change the name and data type of a column of a table?
Consider a scenario where you have two to three tables with thousand tuples in each of them. Now, if you have to perform a join operation between them will you choose to perform filtering of rows or transforming of rows first.
How to create a table?
What is data type for image in mysql?
What are the functions of commit and rollback statements?
how can you test for null values in a database? : Mysql dba
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)