MAMP:
- Stop the MAMP Server if it is running.
- Use a texteditor to create a file named "my.cnf" and save it to the "/Applications/MAMP/conf/" folder.
- Add the following lines into the file:
[mysqld]
default-storage-engine = InnoDB - Save the file and close your editor.
- Start the MAMP servers.
- Start MAMP PRO.
- Stop the MAMP PRO server if it is running.
- Select File -> Edit Template -> MySQL my.cnf
- An editor window appears.
- If a warning message appears confirm with OK.
- Find the section "[mysqld]"
- Beneath the last line of this section add this line:
default-storage-engine = InnoDB - The section "[mysqld]" now looks like this:

- Save (Apple + S) all changes made on "my.cnf"
- Close the editor window (Apple + W)
- Start the MAMP PRO servers.
How-to check if the modifications succeeded. Servers of MAMP / MAMP PRO must be running.
- Open Terminal (Applications/Utilities)
- Enter the following line into the terminal and hit Enter:
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot - Enter the following line into the MySQL prompt and hit Enter:
USE information_schema; - Enter the following line into the MySQL prompt and hit Enter:
SELECT * FROM engines; - A table with the storage Engines of MySQL will show up. Inside the Support column "InnoDB" now has the value "DEFAULT". InnoDB now is the default Storage Engine of the MySQL Server.

- Enter the following line into the MySQL prompt and hit Enter:
exit;

5 Kommentare: