Using DBD::mysql with DBI, I am getting the following error when attempting to connect to the database.
DBI connect(\'database=mydb:host=localhost\',\'someuser\'
$dbh=DBI->connect("DBI:mysql:database=dbname;mysql_socket=/var/lib/mysql/mysql.sock;user=username;password=password");
You don't need to specify host since you're connecting to a socket file.