Manual:$wgCookiePrefix

Details
Set it to use a custom one. Setting it to  or an empty string sets the default of using the database name.

The default value is determined in Setup.php: