Does MySQL included with MAMP not include a config file?

Darryl Hein picture Darryl Hein · Mar 24, 2009 · Viewed 68.8k times · Source

I can't seem to find the my.cnf or other config file for the MySQL that comes with MAMP. Does it not include one?

Answer

Dirk Einecke picture Dirk Einecke · May 19, 2010

The MySQL server of MAMP (not PRO) will be started without any my.cnf file. But you can create your own my.cnf file.

  1. Stop servers
  2. Create a my.cnf file in /Applications/MAMP/conf/
  3. Add your content in to my.cnf
  4. Save my.cnf
  5. Start servers

You do not have to put a complete configuration in the my.cnf file. You can just add parts of a configuration ... for example:

[mysqld]
max_allowed_packet = 64M