How to get rid of errors about character sets not compiled when running batch.php via cron?
If you get errors similar to these: File ‘NONEXISTENT/charsets/?.conf’ not found (Errcode: 2) Character set ‘#33’ is not a compiled character set and is not specified in the ‘NONEXISTENT/charsets/Index’ file File ‘NONEXISTENT/charsets/?.conf’ not found (Errcode: 2) Character set ‘#33’ is not a compiled character set and is not specified in the ‘NONEXISTENT/charsets/Index’ file then PHP’s MySQL interface is not reaching MySQL character set definitions. There are some possible solutions: • try unspecifying default-character-set in /etc/my.cnf (see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=60793 for more info), or • recompile PHP with correct path for key –with-mysql=/path/to/mysql/dir insted of plain –with-mysql (see http://bugs.php.net/bug.php?id=7678&edit=1 for more info).