Database connection issues


#1

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:

production:
adapter: mysql
database: <database_name>
username:
password:
host: mysql..com

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.


#2

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


#3

Problem solved…related primarily to idiocy on my part.