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 |
Write a query to fetch common records between two tables using mysql?
how we can use more then one primary key in Single Table
Write a query to find duplicate rows in table?
Can a table have multiple primary keys?
How to get full name of monthname ?
What is the maximum length of a table name, a database name, or a field name in MySQL?
If you wish to encrypt the username and password using php, how will you do that?
How do you prevent MySQL from caching a query?
How do I clear a mysql database?
How triggers can be used in mysql?
What is the insert?
what is the default port for mysql server? : Mysql dba
Oracle (3253)
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)