1SET @start_global_value = @@global.query_cache_strip_comments; 2select @@global.query_cache_strip_comments; 3@@global.query_cache_strip_comments 40 5select @@session.query_cache_strip_comments; 6@@session.query_cache_strip_comments 70 8show global variables like 'query_cache_strip_comments'; 9Variable_name Value 10query_cache_strip_comments OFF 11show session variables like 'query_cache_strip_comments'; 12Variable_name Value 13query_cache_strip_comments OFF 14select * from information_schema.global_variables where variable_name='query_cache_strip_comments'; 15VARIABLE_NAME VARIABLE_VALUE 16QUERY_CACHE_STRIP_COMMENTS OFF 17select * from information_schema.session_variables where variable_name='query_cache_strip_comments'; 18VARIABLE_NAME VARIABLE_VALUE 19QUERY_CACHE_STRIP_COMMENTS OFF 20set global query_cache_strip_comments=ON; 21select @@global.query_cache_strip_comments; 22@@global.query_cache_strip_comments 231 24set global query_cache_strip_comments=OFF; 25select @@global.query_cache_strip_comments; 26@@global.query_cache_strip_comments 270 28set global query_cache_strip_comments=1; 29select @@global.query_cache_strip_comments; 30@@global.query_cache_strip_comments 311 32set session query_cache_strip_comments=ON; 33select @@session.query_cache_strip_comments; 34@@session.query_cache_strip_comments 351 36set session query_cache_strip_comments=OFF; 37select @@session.query_cache_strip_comments; 38@@session.query_cache_strip_comments 390 40set session query_cache_strip_comments=1; 41select @@session.query_cache_strip_comments; 42@@session.query_cache_strip_comments 431 44set global query_cache_strip_comments=1.1; 45ERROR 42000: Incorrect argument type to variable 'query_cache_strip_comments' 46set session query_cache_strip_comments=1e1; 47ERROR 42000: Incorrect argument type to variable 'query_cache_strip_comments' 48set session query_cache_strip_comments="foo"; 49ERROR 42000: Variable 'query_cache_strip_comments' can't be set to the value of 'foo' 50SET @@global.query_cache_strip_comments = @start_global_value; 51