Web Hosting Talk







View Full Version : where is my.conf located?


deras
09-08-2004, 01:31 PM
i am having trouble finding my.conf to edit it, anyone know how to find it or where it's usually located?

i am running freebsd.

xMTBMARKx
09-10-2004, 05:22 AM
try /usr/local/apache/conf/httpd.conf

bukdor
09-10-2004, 08:37 AM
Isn't it my.ini?

And just do a search of your server for it

find / -n "my.*"

Brightadmin
09-10-2004, 09:42 AM
Hi deras,

Try this command.

find / -type f -name "my.conf" -print

It will display the path of the file "my.conf" if any. Hope this will help you.

Regards,
BrightAdmin
:)

Sheps
09-10-2004, 11:31 AM
I am assuming you mean my.cnf for which is the mySQL configuration file. It is located in /etc/ and the full path(ie. to edit it) is /etc/my.cnf

It could also be in /usr/etc /usr/local/etc /usr/local/mysql/etc

ntwaddel
09-10-2004, 12:38 PM
if your using the mysql port on freebsd, it should look for it in /etc/my.cnf

deras
09-10-2004, 03:57 PM
still having trouble finding it (using the above methods)... does anyone here run freebsd and mysql? (my past experience is redhat which has the my.cnf file)


i found most of the mysql files... does anyone know what other mysql files call on my.cnf (or the freebsd equivalent) that allows you to set cache size and other settings.


i found the mysql_config file... but there is not mention of my.cnf in it... and i don't see any thing resembling my.cnf. what mysql files call on my.cnf, so maybe i can find my.cnf or setup a new my.cnf that way.

ntwaddel
09-10-2004, 03:59 PM
you have to create it! :) /etc/my.cnf

then restart mysql and it will read your cnf file

deras
09-10-2004, 04:05 PM
ok, thanks....