0

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.

asked Jul 30, 2013 at 17:22
1
  • Are you using MySQL for Linux or Windows ??? Commented Jul 30, 2013 at 17:43

2 Answers 2

1

You could use this reference: MySQL Documentation.

For example:

mysql> SHOW VARIABLES;
+---------------------------------+-------------------------------------+
| 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:

SHOW VARIABLES LIKE '%size%';
SHOW GLOBAL VARIABLES LIKE '%size%';

Jack Douglas
40.6k16 gold badges106 silver badges179 bronze badges
answered Aug 1, 2013 at 8:13
1
  • Am using Linux OS.By using show command am not getting below parameter vaule through mysql prompt. Replicate_Wild_Do_Table Commented Aug 1, 2013 at 14:49
-1

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

mysql>/! cat /etc/my.cnf 
András Váczi
31.8k13 gold badges103 silver badges152 bronze badges
answered Aug 6, 2013 at 10:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.