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?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
For MAMP 3.5 on Mac El Capitan, only this worked for me:
my.cnf
file in/Applications/MAMP/Library/
Add your content into
my.cnf
like[mysqld] max_allowed_packet = 64M
Save
my.cnf
Not required to change ownership of file, it should work. Verify by running
SHOW VARIABLES
in phpmyadmin and look for your changed setting.No, it doesn't come with the my.cnf file
The MySQL server of MAMP (not PRO) will be started without any my.cnf file. But you can create your own my.cnf file.
my.cnf
file in/Applications/MAMP/conf/
my.cnf
my.cnf
You do not have to put a complete configuration in the my.cnf file. You can just add parts of a configuration ... for example:
Some standard my.cnf variants can be found at /Applications/MAMP/Library/support-files/
Invoking
mysqld --verbose --help | less
on the MAMP mysqld binary reports:Copy one of the variants in /Applications/MAMP/Library/support-files/ to one of the locations in mysqld's search order above, and you should be good to go after restarting the daemon.
Since MAMP server generates
my.cnf
dynamically on MAMP server startup, it's best to use the following steps to add or edit the MySQL configuration:I tried this on MAMP PRO 3.5.
I found that MAMP PRO will create a my.cnf by default on startup under the MAMP/tmp directory if a ~/my.cnf is not provided ... grepping ps aux you may find the default location under /Applications/MAMP/tmp/my.cnf ...
Which provided the following...