MAMP php can't connect to mysql

So, for a project I'm setting up a wordpress blog and to test out on my mac I upgraded MAMP to the newest version. Now I have a problem that while I can connect to mysql with Sequel Pro, I can't connect to the mysql databases from PHP – neither from PhpMyAdmin nor Wordpress.

Anyone have experience with this and has some ideas for how to make it connect?

Trending on Indie Hackers
10 Free Illustration resources for indie hackers. 11 comments One of the best guides that I come across for SEO 11 comments Dev of 1 built a $4.2M ARR dealership system. AMA. 9 comments Acquisition Channel Trends & Opportunities: Instagram, E-Commerce, Apple 8 comments How Stripe operates like a civilization 7 comments Page 404. Why do we give a F$%k about details in design of our products? 5 comments