

In my case, because I already had MySQL installed on my Mac, I ran into a few errors until I realized this.

The most important thing to know is that you need to use the MySQL command line client that came with MAMP. If you're going to use the MAMP MySQL client from the command, here's a quick tip that can save you some time. In the GUI, just click the MAMP menu item, then select Preferences, and change the ports as desired. If you want to change those, you can easily change them through the MAMP GUI. One quick note all MAMP developers need to know: By default MAMP runs Apache on port 8888, and MySQL on port 8889. However, since I do work from the Mac command line I had to make a couple of quick changes to my environment to get MySQL and the CakePHP "bake" script to work properly. If so, here's what it looks like when you start it:
MYSQL DOWNLOAD MAC OS X MAC OS X
In fact, if you don't work from the Mac OS X command line (i.e., the Terminal), MAMP might be 100% complete.Īssuming you don't work from the command line, you might be ready to use MAMP.
MYSQL DOWNLOAD MAC OS X INSTALL
Just download MAMP and install the MAMP folder in your Mac Applications folder, and you're almost ready to start your Mac/Apache/MySQL/PHP project.

Mac LAMP development with MAMP (Mac OS X, Apache, MySQL, and PHP)įirst of all, MAMP is a terrific, free all-in-one Mac LAMP/PHP solution. In this article I'll demonstrate how I got MAMP to work for my Mac LAMP needs, in particular working through a couple of issues not covered in the MAMP installation docs, and also using MAMP with CakePHP. The reason I can comfortably say "I'll skip all the details here" is because I recently started using MAMP for my Mac PHP MySQL development, and I have no plans on looking back to the old days any time soon. I'll skip most of the details here, but getting Apache and PHP to work involves modifying the Apache configuration files under /private/etc/apache2 or /private/etc/httpd, and also getting past some Mac/MySQL/PHP socket errors I ran into. When it comes to PHP development on Mac OS X, I've always battled my way through getting Apache, MySQL, and PHP on the Mac to work the way I needed them to. PHP LAMP Mac FAQ: Can you recommend a good way to develop Mac PHP/LAMP applications on Mac OS X? You can now hire Alvin Alexander for Scala or Flutter side projects!Ĭontact me at (al) at valleyprogramming (dot) com for details.
