Where is MySQL 5.7 my.cnf file?

Bee picture Bee · Jul 20, 2016 · Viewed 31k times · Source

In Ubuntu I had my.cnf file of MySQL 5.6 in /etc/my.cnf. But I can't find the same file of MySQL 5.7. From where can I find that?

I did a find in entire / (root). But I couldn't find it anywhere. Any clues?

I'm trying to set max_connections value.

Answer

neobie picture neobie · Mar 3, 2017

In MySQL 5.7, the default cnf is at:

/etc/mysql/mysql.conf.d/mysqld.cnf