How to find out the location of currently used MySQL configuration file in linux

前端 未结 7 558
慢半拍i
慢半拍i 2020-12-23 13:06

How do I know which configuration file is used by MySQL currently? Is there any command or something to find it out?

7条回答
  •  爱一瞬间的悲伤
    2020-12-23 13:59

    mysqld --help --verbose will find only location of default configuration file. What if you use 2 MySQL instances on the same server? It's not going to help.

    Good article about figuring it out:

    "How to find MySQL configuration file?"

提交回复
热议问题