1

I recently setup a new web server with Ubuntu 12.04. I noticed that there are two my.cnf files, and MySQL successfully reads both:

  • /etc/my.cnf
  • /etc/mysql/my.cnf

Do I need to keep both of these files?

If possible, I would like to simply merge the lines from one my.cnf into the other, thereby having only one my.cnf to manage.

1 Answer 1

2

You should only need one of those, but for legacy reasons MySQL will LOOK in those places (and a few others, some of them really strange, because that's how it is). Feel free to consolidate.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.