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;

1 Kommentare:
Adding this command made my whole system crash and now phpmyadmin will not come up at all when I try to select it from my MAMP dashboard. Are you sure the syntax is correct? I also tried editing the cnf doc to un-comment the options located under "If you use InnoDB you can un-comment these options". That made no difference, except that according to the logs it trashed it even worse. Very frustrating. I am using the latest version of MAMP as of this date.
Post a Comment