Manual:$wgDBsqluser

Details
The SQL user used for read-only queries in the (no longer existing) Special:Asksql.

The MySQL user shouldn't have too many rights over the database, restrict it to   only on " " table for example.