如何找到mysql的配置文件

$ which mysqld
/usr/sbin/mysqld

$ /usr/sbin/mysqld --verbose --help | grep -A 1 "Default options"
Default options are read from the following files in the given order:
/etc/mysql/my.cnf ~/.my.cnf /usr/etc/my.cnf


----
strace mysqld
posted @ 2020-05-12 11:23  qqisnow2021  阅读(590)  评论(0编辑  收藏  举报