Monthly Archives: May 2009

MySQL Schema Best Practices

Use UNSIGNED INT (or BIGINT if needed) for primary key, since you don’t need negative primary keys. Don’t use ON DELETE CASCADE, since you might delete rows you wanted to keep.  Explicitly delete rows in your code. Don’t use ON … Continue reading

Posted in MySQL | 1 Comment

How To Install CPAN Dependencies Without Interaction

How to Automatically Install CPAN Dependencies without having to answer “yes” to each question: export PERL_MM_USE_DEFAULT=1

Posted in Linux | Leave a comment

How to List Files of a Package Installed by YUM/RPM

# rpm -ql mysql-devel /usr/include/mysql /usr/include/mysql/chardefs.h /usr/include/mysql/decimal.h /usr/include/mysql/errmsg.h …

Posted in Fedora, Linux, RPM, YUM | Leave a comment