# Variable Name: mysqlx_ssl_ca # # Scope: Global # # Access Type: Static # # Data Type: filename # # # #################################################################### # Displaying default value # #################################################################### SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca); #################################################################### # Check if Value can set # #################################################################### --error ER_INCORRECT_GLOBAL_LOCAL_VAR SET @@GLOBAL.mysqlx_ssl_ca=1; --echo Expected error 'Read only variable' SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca); ################################################################# # Check if the value in GLOBAL Table matches value in variable # ################################################################# --disable_warnings SELECT @@GLOBAL.mysqlx_ssl_ca = VARIABLE_VALUE FROM performance_schema.global_variables WHERE VARIABLE_NAME='mysqlx_ssl_ca'; --enable_warnings SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca); --disable_warnings SELECT COUNT(VARIABLE_VALUE) FROM performance_schema.global_variables WHERE VARIABLE_NAME='mysqlx_ssl_ca'; --enable_warnings ################################################################################ # Check if accessing variable with and without GLOBAL point to same variable # ################################################################################ SELECT @@mysqlx_ssl_ca = @@GLOBAL.mysqlx_ssl_ca; ################################################################################ # Check if mysqlx_ssl_ca can be accessed with and without @@ sign # ################################################################################ SELECT COUNT(@@mysqlx_ssl_ca); --Error ER_INCORRECT_GLOBAL_LOCAL_VAR SELECT COUNT(@@local.mysqlx_ssl_ca); --echo Expected error 'Variable is a GLOBAL variable' --Error ER_INCORRECT_GLOBAL_LOCAL_VAR SELECT COUNT(@@SESSION.mysqlx_ssl_ca); --echo Expected error 'Variable is a GLOBAL variable' SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca); --Error ER_BAD_FIELD_ERROR SELECT mysqlx_ssl_ca = @@SESSION.mysqlx_ssl_ca; --echo Expected error 'Readonly variable'