I’m getting into Template Toolkit (for PERL) but I can’t get it to connect to my SQL database. I get this error -
DBI error - DBI connect failed: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
I can connect fine from within my perl scripts, but when I try to do so from within a TT file, that happens. I’ve searched and searched the web, but I have no idea how to fix this.
“Necessity may be the mother of invention, but trial and error is the mother of knowledge.”