No my.cnf file found

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I cannot find my.cnf file:

# locate my.cnf
/etc/my.cnf.old
/etc/my.cnf.rpmsave

I want to make sure that mysql is setup to block remote connections but I can't because I can't find the config file.

Any suggestions?
 
It should be /etc/my.cnf. You've probably renamed the file to /etc/my.cnf.old in the past (the rpmsave file is a moved my.cnf file, most likely at the moment when MySQL RPMs were removed from the system). I would recommend checking the contents of /etc/my.cnf.old, and if the file looks okay, just do:
Code:
cp /etc/my.cnf.old /etc/my.cnf
 
Can MySQL still function without the proper file??

I ask because, currently I can login to mysql via CLI and use it.
 
Back
Top