I haven't set $wgShowSQLErrors in LocalSettings.php and yet i am still getting mysql error messages. Sometimes these include the name of the database and the db user, other times they include a Backtrace of the error.
I need to investigate further, but the error messages may be only coming from my own custom Special Pages.