

Now you can see hidden files as well like. If you do not do this you will have database connection problems.īefore you copy any Magento data use this command in your CLI and restart your finder (ALT+Rightclick). You can put this line into your home folder/.bash_profile so you do not need to do this every time again.

Use following command in your CLI: export PATH=/Applications/MAMP/bin/php/php5.6.10/bin:$PATH Since we will work alot with CLI we need MAMP Pros PHP run there as well. Now you go to the 'Hosts'-tab and create a domain called v and its document root should be at /Applications/MAMP/htdocs/v/html. And activate xDebug - it is always nice to have a good debugger. Under PHP I'm using Version 5.6.10 - I guess there won't be big differences when you take 5.4.x, but this is at least recommended.
#JAVA CODE TO CONNECT TO DATABASE USING MAMP SERVER HOW TO#
MAMP Pro: 3.5 (sorry for german interface screenshots in MAMP, do not know how to set it to english)Īfter installing MAMP I use the standard ports (80, 443, 3306).

My final tests are based on the sample data provided by Magento, so get them as well. It works without MAMP too - but that is how I did it - so feel free to work without MAMP. This is my first try to setup Behat Magetest for Magento on my MacOS - my tests run quite well and I want to share my experience.įirst of all you should download MAMP Pro and Magento, if you did not do it already.
