Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For php there is php -i. For apache i can debug settings with apachectl -S.

Is there a way for me to output via command line what the current "sourced" settings for mysql are?

I'm trying to figure out if i correctly set my innodb poolsize.

share|improve this question
up vote 2 down vote accepted

You can query it from the command line with an account that has enough privileges.

mysql -u root -p -e "show variables;"
mysql -u root -p -e "show variables like '%innodb%';"
mysql -u root -p -e "show variables like 'innodb_buffer_pool_size';"
share|improve this answer

I think you will be pleased with either of these commands:

mysqld --verbose --help
or mysqladmin variables

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.