![]()  | 
  
    MySQL 8.4.7
    
   Source Code Documentation 
   | 
 
Service to set the value of system variables. More...
#include <mysql_system_variable.h>
Public Attributes | |
| mysql_service_status_t(* | set )(MYSQL_THD thd, const char *set_variable_type, my_h_string variable_name_base, my_h_string variable_name, my_h_string variable_value) | 
| Sets the value of a system variable to a new string value.  More... | |
Service to set the value of system variables.
This is an example of using the service:
| mysql_service_status_t(* s_mysql_mysql_system_variable_update_string::set) (MYSQL_THD thd, const char *set_variable_type, my_h_string variable_name_base, my_h_string variable_name, my_h_string variable_value) | 
Sets the value of a system variable to a new string value.
| thd | thread session handle. if NULL a temp one will be created and then removed. | 
| set_variable_type | one of [GLOBAL, PERSIST, PERSIST_ONLY]. If NULL, then assumes GLOBAL. | 
| variable_name_base | a mysql string of the variable name prefix. NULL of none | 
| variable_name | a mysql string of the variable name | 
| variable_value | a mysql string to set as value | 
| FALSE | success | 
| TRUE | failure, see THD if supplied. |