Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.