"Unable to connect to MySQL Database No such file or directory"

Hi all,

I’ve never had problems before but I have started getting this error message when trying to connect to MySQL database locally recently. I have Apache/PHP/MySQL all installed natively and get the following error whenever I try to connect to a database, weather using WP or PyroCMS I always get. (Or a similar variation depending on CMS. Any idea on how to fix?

Unable to connect to MySQL Database No such file or directory

Thanks,
Dan.