| 1 |
set session debug="L"; |
| 2 |
select @@global.debug="1"; |
| 3 |
@@global.debug="1" |
| 4 |
0 |
| 5 |
select @@session.debug; |
| 6 |
@@session.debug |
| 7 |
L |
| 8 |
show global variables like 'debug'; |
| 9 |
Variable_name Value |
| 10 |
debug # |
| 11 |
show session variables like 'debug'; |
| 12 |
Variable_name Value |
| 13 |
debug L |
| 14 |
select * from performance_schema.global_variables where variable_name="debug"; |
| 15 |
VARIABLE_NAME VARIABLE_VALUE |
| 16 |
debug # |
| 17 |
select * from performance_schema.session_variables where variable_name="debug"; |
| 18 |
VARIABLE_NAME VARIABLE_VALUE |
| 19 |
debug L |
| 20 |
set @@global.debug=1; |
| 21 |
ERROR 42000: Incorrect argument type to variable 'debug' |
| 22 |
set @@global.debug=1.1; |
| 23 |
ERROR 42000: Incorrect argument type to variable 'debug' |
| 24 |
set @@global.debug=1e1; |
| 25 |
ERROR 42000: Incorrect argument type to variable 'debug' |