Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHannah Carpenter
8,650 PointsSetting up a local environment for working with PHP and databases using MAMP - can't connect to my database.
I'm working through the course, CRUD Operations with PHP, and would like to apply my learnings to a local environment so I can develop my skills. I can't seem to find a way to get the database connection to work. I have tried various things found through google to connect and none work.
Perhaps someone can help or point me to a clear tutorial on the subject?
1 Answer
Hannah Carpenter
8,650 PointsThanks for your response. Yes to both, and I have managed to sort it now. I was just getting in a muddle and not getting all the things right at the same time somehow!
Dave StSomeWhere
19,870 PointsDave StSomeWhere
19,870 PointsWhere are you having issues - did the install complete successfully and do you get the green lights that Apache and MySQL servers are started?
Have you checked the official documentation - https://documentation.mamp.info/en/MAMP-Mac/