This sounds like your database itself or local server may have issues. This error is coming from your database and not from Dreamweaver.
I did a google search for that error and found:
https://stackoverflow.com/questions/1676688/mysql-connection-not-working-2002-no-such-file-or-directory