phpphpmyadminmampmamp-pro

MAMP config settings reset every time I restart


I'm running MAMP Pro v2.1.1 on OSX 10.8.5

I like to modify a couple settings for phpMyAdmin by modifying the settings in /Library/Application Support/absolute/MAMP PRO/phpMyAdmin/config.inc.php

This works just fine, but every time I restart MAMP, the settings revert back to the defaults. It's really annoying.

I know that the php.ini file and other files are meant to be edited with MAMP's built-in editor. But there does not appear to be an option for phpMyAdmin.


Solution

  • Actually I had the same issue... Pretty annoying but I found out after emailing them that the file at /Library/Application Support/absolute/MAMP PRO/phpMyAdmin/config.inc.php is basically a temporary placeholder for your settings, inasmuch as whenever you start up MAMP the contents of the file at /Applications/MAMP/bin/phpMyAdmin/config.inc.php is read and copied into it, overriding whatever's already there.

    That said, here's what to do:


    1. Stop all servers and quit MAMP (completely)
    2. Make your changes to the file located at /Applications/MAMP/bin/phpMyAdmin/config.inc.php
    3. Open MAMP again and start all servers

    The settings from the file you just edited should now be copied into the one that's actually read by MAMP and should take effect immediately.

    For instance, I prefer to not enable the AJAX feature, so I did this:

    1. Shut down the servers
    2. Closed MAMP (entirely)
    3. Opened the file /Applications/MAMP/bin/phpMyAdmin/config.inc.php
    4. Added $cfg['AjaxEnable'] = false; to the file
    5. Saved the file
    6. Reopened MAMP
    7. Started the servers

    ... and all was well.