Get the App
SLTechnology News&Howtos  ›  Servers  › 

Where is the configuration file for mysql in linux

Shulou Source: shulou.com Published: 2022-06-03 03:35:08 09月22日 Update

On linux systems, the location of the configuration file is usually / etc/my.cnf or / etc/MySQL/my.cnf.

We have seen some people try to modify the configuration file but it does not work because they are not modifying the file read by the server. For example, under Debian, / etc/mysql/my.cnf is the configuration file read by MySQL, not / etc/my.cnf.

If you do not know which profile path is currently in use, you can try the following:

These are the details of where linux's mysql configuration file is. For more information, please follow other related articles!

Tags: Files configurations attempts locations content that is articles more servers systems paths facets services Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn macOS Xiaomi Linux Redmi