Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

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

I am new to MySQL DBA, i have a doubt, Is there any command for finding my.cnf configuration file variables and its respective value which is mention in my.cnf file in mysql prompt itself. like we will see the global variable which are there in mysql in below format mysql> show variable like'xxxx';

Similar kind of command is there for seeing all parameter present in my.cnf.

share|improve this question
Are you using MySQL for Linux or Windows ??? – RolandoMySQLDBA Jul 30 '13 at 17:43

You could use this reference: MySQL Documentation.

For example:

| Variable_name                   | Value                               |
| auto_increment_increment        | 1                                   |
| auto_increment_offset           | 1                                   |
| automatic_sp_privileges         | ON                                  |
| back_log                        | 50                                  |

To obtain the row for a specific variable, use a LIKE clause as shown:


share|improve this answer
Am using Linux OS.By using show command am not getting below parameter vaule through mysql prompt. Replicate_Wild_Do_Table – user2635016 Aug 1 '13 at 14:49

By using below command we can read the my.cnf or any file content through prompt.

mysql>/! cat /etc/my.cnf 
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.