When configuring MySQL database in your script, it will most likely ask you what the MySQL hostname is. Please enter localhost as your hostname. This works almost all the times.