I’m trying to install Magento on MAMP pro. It gives me below error.

I tried changing the Host to localhost:8888 and localhost:8889 but it does not work. Given that I have created a database called magento in my database.
How can I fix this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(http://localhost:8888)(http://localhost:8888/mymegento)Tricky part is provide database name correctly. Both username and the password should be
root.