Database connection issues

OK, I know this issue has been addressed int the forums before but I cannot get things resolved. Getting the dreaded error: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’

database.yml file:

adapter: mysql
database: <database_name>

I was able to get the site working last night when I first got it all posted but it will not work this morning. Restarted the passenger service etc. to no avail. I can prevent the whole application from starting up by completely deleting the database.yml file so the file is being read but for some reason does not seem to read the host correctly. any help would be appreciated.

Databases isn’t allowed to be connected by other Hosts by default,unless you reset it

Problem solved…related primarily to idiocy on my part.