MYSQL INTERVIEW QUESTION & ANSWERS
Databases
Follow Us
TAGS
16. | What are the Common SQL Function? |
---|---|
|
17. | Explain Access Control Lists. |
---|---|
An ACL (Access Control List) is a list of permissions that is associated with an object. This list is the basis for MySQL server's security model and once you understand this it helps greatly when troubleshooting problems with users not being able to connect. MySQL keeps the ACLs (also called grant tables) cached in memory. When a user tries to authenticate or run a command, MySQL checks the authentication information and permissions against the ACLs, in a predetermined order. |
18. | Define system tables. |
---|---|
mysql All the user and permission information is stored in the mysql database in a set of tables known as the grant tables. information_schema The information_schema database really is not a database but an interface to various system metadata |
19. | Tell me about GRANT and REVOKE. |
---|---|
There are two commands that are used to control a user’s privileges. The GRANT command is used to give an existing user privileges, and REVOKE is used to remove privileges. If a user does not exist, GRANT will create a new user at the same time we are giving them privileges. |
20. | What drawback will occur when using GRANT command? |
---|---|
It is too easy to forget to specify a password when using the GRANT syntax. We should be created with CREATE USER first, then given permissions with GRANT. |