Connecting to MySQL with Perl
Can't connect to mySQL server: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
You must supply a hostname when connectiong to MySQL. The above error appears when attempting to connect to localhost. We have a dedicated MySQL server instead of overloading each individual webserver with their own instance of MySQL.