- Reference >
- Database Commands >
- Administration Commands >
- setParameter
setParameter¶
On this page
Definition¶
-
setParameter
¶ setParameter
is an administrative command for modifying options normally set on the command line. You must issue thesetParameter
command against the admin database in the form:For the available parameters, including examples, see MongoDB Server Parameters.
Behavior¶
Persistence¶
Commands issued by the admin command setParameter
do not survive server restarts. For a persistent option use the
--setParameter
command line option
or the setParameter
configuration file setting.
Stable API¶
When using Stable API V1 with apiStrict set to true
, you cannot use
setParameter
to modify server parameters.