mysql command for showing current configuration variables

后端 未结 3 1311
野性不改
野性不改 2021-01-29 23:36

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.

3条回答
  •  爱一瞬间的悲伤
    2021-01-30 00:16

    What you are looking for is this:

    SHOW VARIABLES;  
    

    You can modify it further like any query:

    SHOW VARIABLES LIKE '%max%';  
    

提交回复
热议问题