Error trying to connect to database when installing new site on localhost Has anyone come across this problem?  Once I get drupal all ready to install on my localhost I go to the URL and start going through the installation process and when it comes to my database it fails.

So I import the site into Acquia Dev Desktop, create the database, and then go to the URL, select the type of installation and then when I come to the database information page it fails.

Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).

I can't find any helpful documentation on this issue.
Can anyone help?

Thanks!!
Thanks for the responses everyone.  I ended up getting so frustrated I uninstalled Aquia Dev Desktop and then re-installed a newer version of it.  It seems to have solved the problem because I haven't run into this issue since.