MAMP run mysql as command on a mac

As you might have noticed when running MAMP as your local Apache/MySQL/PHP enviroment you cannot run ”mysql” as a command from the terminal. This is beacuse the execute file is in the folder /Applications/MAMP/bin/apache2/bin/mysql

To fix this, simply create a symlink from the execute file to your /bin/ folder. Just copy and paste the command below to your terminal and run it:


sudo ln -s /Applications/MAMP/bin/apache2/bin/mysql /bin/mysql

Annonser

Kommentera

Fyll i dina uppgifter nedan eller klicka på en ikon för att logga in:

WordPress.com Logo

Du kommenterar med ditt WordPress.com-konto. Logga ut / Ändra )

Twitter-bild

Du kommenterar med ditt Twitter-konto. Logga ut / Ändra )

Facebook-foto

Du kommenterar med ditt Facebook-konto. Logga ut / Ändra )

Google+ photo

Du kommenterar med ditt Google+-konto. Logga ut / Ändra )

Ansluter till %s