locating mysql conf file

spoonfed

Verified User
Joined
Mar 26, 2008
Messages
23
Hello, i know this isnt a DA-specific question but hopefully someone can help.

The company i work at has a server with CentOS and DA, i need to make a change to the mysql config file which should be /etc/my.cnf from what ive found on google. but theres no such file and a locate returns.

/etc/my.cnf.old
/etc/my.cnf.rpmsave

Is there a command i can run so mysql tells me what config file its using, like httpd -V for apache?
 
Hello,

Code:
ps auxww | grep mysql

Will show it. I'm sure it's using /etc/my.cnf (if it's empty - then it's using default settings).
 
hmm, i cant seem to find it in the result. I'll attach an image since a copy paste didnt capture it all.

Any other ideas?
 

Attachments

  • grep.gif
    grep.gif
    18.1 KB · Views: 203
hmm, okay, but there is no /etc/my.cnf.

so could i put just the stuff i wanted to change in the new my.cnf file and the rest of the settings will be default?
 
Back
Top