20.05.2016, 07:41
As it says MySQL connection failed, prima facie it appears to be a connectivity issue.
Have you ensured that you got your MySQL server up & running, along with correct database credentials in the script?
Have you ensured that you got your MySQL server up & running, along with correct database credentials in the script?

