Ever been traversing the web and see something like this:

Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /home/ourmedia/htdocs/includes/database.mysql.inc on line 31
Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

This usually means the MySQL database server is not running and needs to be restarted. How to fix via SSH/telnet so that when the machine reboots, it automatically starts MySQL?

E-gineer provides step-by-step instructions for setting this up on a Red Hat box. They also have general startup instructions here.