Oh my gosh. I was doing a homework assignment and I was having trouble accessing a php document and this was my problem. I'm so glad I finally found this video! Thank you!
For those who didnt work.. You can see the guy do tutorial ,his port is localhost:8080, meaning he has change the port from default 80 to 8080.Seems he had this problem ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ipMedkjMupw.html before To solve ths problem, for host name use 'localhost:3307' instead of "localhost' or 'localhost:3306' instead of 'localhost'..The video didn't work for me but this did wonders.