mysql command for showing current configuration variables

Brian G picture Brian G · Sep 29, 2009 · Viewed 129.8k times · Source

Can not find a command that displays the current configuration of mysql from within the database.

I know I could look at /etc/mysql/my.cnf but that is not what I need.

Answer

code_burgar picture code_burgar · Sep 29, 2009

What you are looking for is this:

SHOW VARIABLES;  

You can modify it further like any query:

SHOW VARIABLES LIKE '%max%';