Thread:Project:Support desk/MySQL 1267: Illegal mix of collations when wgUseTeX=true (math on)

When I set $wgUseTeX to true, all pages in the wiki with math on them return just the following text: A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

(SQL query hidden)

from within function "MathRenderer::_recall". Database returned error "1267: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (localhost)".

I am using PHP 5.3.2, MySQL 5.1.51-log and texvc works great on the tests specified on Manual:Troubleshooting_math_display_errors.