• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 733
  • Last Modified:

unable to find my.cnf


I wanted to increase the max_connection variable to 500 but I am unable to find my.cnf file. please help.

1 Solution
Under Windows, *.cnf is a hidden extension on some systems

'C:\Windows\my.cnf' would show up as 'C:\Windows\my' because the ".cnf" extension is hidden under some Windows systems.
tripatAuthor Commented:
I am using linux es
On linux thefile is typicaly located at /etc/my.cnf If it is not there you can search fo the file with
find / -name my.cnf
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

UmeshMySQL Principle Technical Support EngineerCommented:

If you have installed using source, this should be under  mysql/support-files/ you will find these (my-huge.cnf,my-small.cnf,my-large.cnf.. etc)

Copy the default configuration file for the expected size of the database (small, medium, large, huge)

cp support-files/my-medium.cnf /etc/my.cnf
chown root:sys /etc/my.cnf
chmod 644 /etc/my.cnf

Hope this helps!
"unable to find my.cnf"

Hmm... Where did you leave it last?  ;o)

UmeshMySQL Principle Technical Support EngineerCommented:
Hi tripat,

Have you installed mySQL from source/RPM(Binary)?
If you have installed from any binary/RPM then the my.cnf should be in /etc/..
Say if this file is not found anywhere, then you can create my.cnf file. Please check this url for  how to stuff..


Hope this helps!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now