This was a sticking point in for the WERC seminar reservation system. The database web bot / mysql user needs the FILE priv.

GRANT FILE on *.* to ‘werc_seminar_bot’@’localhost’;