2008-04-10 15:14:28 +02:00
|
|
|
SET @start_value = @@global.slow_query_log_file;
|
|
|
|
SELECT @start_value;
|
|
|
|
@start_value
|
|
|
|
slowtest.log
|
|
|
|
'#---------------------FN_DYNVARS_004_01-------------------------#'
|
|
|
|
SET @@global.slow_query_log_file = DEFAULT;
|
|
|
|
SELECT RIGHT(@@global.slow_query_log_file,15);
|
|
|
|
RIGHT(@@global.slow_query_log_file,15)
|
2008-05-30 11:12:07 +02:00
|
|
|
mysqld-slow.log
|
2008-04-10 15:14:28 +02:00
|
|
|
'#--------------------FN_DYNVARS_004_02------------------------#'
|
|
|
|
SET @@global.slow_query_log_file = mytest.log;
|
2008-05-20 20:23:58 +02:00
|
|
|
SET @@global.slow_query_log_file = 12;
|
|
|
|
ERROR 42000: Incorrect argument type to variable 'slow_query_log_file'
|
2008-04-10 15:14:28 +02:00
|
|
|
'#----------------------FN_DYNVARS_004_03------------------------#'
|
|
|
|
SELECT @@global.slow_query_log_file = VARIABLE_VALUE
|
|
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
|
|
WHERE VARIABLE_NAME='slow_query_log_file';
|
|
|
|
@@global.slow_query_log_file = VARIABLE_VALUE
|
|
|
|
1
|