ps -ef find a
mysqld progress, but how can I know which conf file it using?
[root@controller data]# ps -ef | grep mysql mysql 8901 1 0 15:15 ? 00:00:00 /usr/sbin/mysqld root 8974 327 0 15:16 pts/0 00:00:00 grep --color=auto mysql
If you get the content of file
/proc/8901/cmdline you will see what is the command line for this process and where is the config file. Here 8901 is the PID of your process. You can use also
ps -efl|grep mysql
to get long listing and in most of the case you will get entire command line
Also you can check for config file on usual places:
strace -fe trace=open mysql; that will show you all the files used for that process, including the conf file; strace is not installed by default in most of the systems but you can install it without problems from the repositories.