SET
Changes the value of a system setting for the current session. To show all the current settings, use SHOW SETTINGS.
See also:
Syntax
SET [ SESSION | GLOBAL ] <setting_name> = <new_value>
Examples
The following example sets the max_memory_usage setting to 4 GB:
SET max_memory_usage = 1024*1024*1024*4;
The following example sets the max_threads setting to 4:
SET max_threads = 4;
The following example sets the max_threads setting to 4 and changes it to be a global-level setting:
SET GLOBAL max_threads = 4;