Hi Jason, Is your MySQL service running? (/etc/init.d/mysql start or 'service mysql start')
If all else fails, you may want to consider uninstalling and reinstalling your mysql package with your distro's package manager. David On Sun, Oct 2, 2011 at 9:33 AM, Jason Hsu, Mr. Swift Linux < [email protected]> wrote: > I'm in chapter 16 of the book _Agile Web Development with Rails_. I > was able to get Apache/Passenger working, but now I'm stuck on MySQL. > When I enter "mysql -u root", I get the message: > ERROR 2002 (HY000): Can't connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' > > I created the /var/run/mysqld directory and the /var/run/mysqld/ > mysqld.sock file. However, I was not able to grant ownership of this > file to mysql, because the user mysql doesn't exist. > > What exactly do I need to do? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

