Vidyalelo
MySQL · Q1126

MySQL

Programming · MySQL · question 1126

Q1126

Which variable is set to zero when automatic privilege granting is not needed?

A.
automatic_sp_privileges
Answer
B.
automatic_ps_privileges
C.
automatic_pg_privileges
D.
automatic_gp_privileges

Answer: Option A

Solution

Answer: Option A
Solution:
This question asks about a MySQL variable that controls whether privileges are automatically granted.

Let's break down the options:

Option A: automatic_sp_privileges - This variable is the correct answer. It determines if privileges for stored procedures are automatically granted. Setting it to zero means automatic privilege granting is not needed.

Option B: automatic_ps_privileges - This option doesn't exist in MySQL.
Option C: automatic_pg_privileges - This option doesn't exist in MySQL.
Option D: automatic_gp_privileges - This option doesn't exist in MySQL.

In summary, when you want to avoid automatic privilege granting for stored procedures, you set the `automatic_sp_privileges` variable to zero.