Can you confirm that your MySQL is up and running with the default port? If it is running on a different port, you need to provide it properly. Also you need to provide correct username and password.
Please attach the error log file when you are reporting an technical error. It is helpful to the others to look at what exactly has happened