Ruby on Rails on RHEL4

I’ve struggled with a few things on RHEL4 (actually CentOS) during my initial review of Ruby on Rails. It’s taken a little getting used to, but overall it’s going to be a great productivity booster at work. This will be added to as new problems are addressed.Mysql.sock not found

It seems as if the default mysql.sock file is located at /tmp/mysql.sock on most linux distros. With RedHat I found it at /var/lib/mysql/mysql.sock, which means that you must configure the database.yml file to include the socket: directive.

e.g. socket: /var/lib/mysql/mysql.sock

WordPress database error: [Table './austintech_wp/wp_comments' is marked as crashed and last (automatic?) repair failed]
SELECT * FROM wp_comments WHERE comment_post_ID = '5' AND comment_approved = '1' ORDER BY comment_date

Leave a Comment