The file my.cnf is missing and cannot be found in any directory

I recently uninstalled mysql 5.1 installed by mysql 5.6 on my CENTOS 6 x86 OS. When I try to find the my.cnf file in these directories is missing:

mysqld --verbose --help | grep -A 1 "Default options"

=

/etc/my.cnf, /etc/mysql/my.cnfand ~/.my.cnf.

Now I went to my mysql home directory, which is / var / lib / mysql, to find the .cnf file, but all I found was auto.cnf.

Does anyone have any ideas? Can I just download my.cnf and put it in one of these directories?

+5
source share
4 answers

sudo updatedb && & find my.cnf

+1
source

if you have trouble finding

as root: find / -name my.cnf

How did you install mysql? with yum?

0
source

Centos 6.5. MySQL-server.X86_64 5.6.12-2.el6, my.cnf /usr./usr/my.cnf? , , my.cnf /usr?

find/-iname my.cnf -print

0
source

The location has changed to /mysql.d, and the file name has changed to mysqld.cnf. Also, there is a similar question somewhere (maybe duplicate here or there).

0
source

All Articles