The statement that views status variables by aggregating the values over all connections is . . . . . . . .
A. SHOW SESSION STATUS
B. SHOW LOCAL STATUS
C. SHOW GLOBAL STATUS
D. SHOW STATUS
Answer: Option C
Solution (By Examveda Team)
This question is about how to view the status of your MySQL database. Think of status variables like little pieces of information that tell you how your database is performing.Here's how to break down the options:
Option A: SHOW SESSION STATUS
This command will show you the status variables for the *current* connection you have to the MySQL server.
Option B: SHOW LOCAL STATUS
This command is similar to SHOW SESSION STATUS and is used to show status variables for the current connection.
Option C: SHOW GLOBAL STATUS
This is the correct answer! It shows you the status variables *aggregated* from *all* connections to your MySQL server. This gives you a more comprehensive view of the database's overall health.
Option D: SHOW STATUS
This command is similar to SHOW GLOBAL STATUS, it also shows the status variables aggregated from all connections to your MySQL server.
In simple terms, if you want to see the overall status of your MySQL server across all connections, the command you're looking for is SHOW GLOBAL STATUS.

Join The Discussion