database connection error on Mac

i have both php storm and web storm. I am having issue connecting to database

i am using MAMP so i am not sure if this is the issue
here are my settings
host: localhost
port:8889
url:jdbc:mysql://localhost:8889


phpstorm database: i get te following error
i get this error
vConnection to MySQL - @localhost [2] failed
java.sql.SQLException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.




also

webstorm with databse navigator:
i get this error
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

2 comments
Comment actions Permalink

thanks i followed the steps one one of the link you sent me and it worked thanks

here is wht i did for it to work on MAMP

comment out
#MAMP_skip-networking_MAMP

1

Please sign in to leave a comment.