LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Need to find the config file for mysql (https://www.linuxquestions.org/questions/linux-server-73/need-to-find-the-config-file-for-mysql-673981/)

Thaidog 10-03-2008 10:54 AM

Need to find the config file for mysql
 
I just upgraded to the latest mysql with the binary from the mysql site. It has changed a few things relative to the paths that I was used to in the default CentOS install.

Does anyone know where the default location is for the my.cnf file?

racracracrac 10-03-2008 12:02 PM

No idea, but the following will find it for you. Look for the one with the latest date. The updatedb only needs to be done when there are new files, and is likely already being called daily by cron.

sudo updatedb && locate my.cnf | xargs ls -al

trickykid 10-03-2008 02:46 PM

Quote:

Originally Posted by Thaidog (Post 3299099)
I just upgraded to the latest mysql with the binary from the mysql site. It has changed a few things relative to the paths that I was used to in the default CentOS install.

Does anyone know where the default location is for the my.cnf file?

Well, how did you configure it or was it an RPM? I'd take the other replies suggestion, just locate it or find it. Sometimes they won't have a default, maybe an example you can copy from or use, etc.


All times are GMT -5. The time now is 12:56 PM.