Try adding the port to the server name in your mysql connection like:
localhost:8889
either that or try updating it to 3306, which is the default I'm used to.
Did you create the phpinfo page and verify that you aren't running php v7 or above?
Are you able to view your database with phpMyAdmin?