MySQL  8.0.18
Source Code Documentation
mysqld.h File Reference

Go to the source code of this file.

Macros

#define TEST_PRINT_CACHED_TABLES   1
 
#define TEST_NO_KEY_GROUP   2
 
#define TEST_MIT_THREAD   4
 
#define OBSOLETE_TEST_BLOCKING   8
 
#define TEST_KEEP_TMP_TABLES   16
 
#define TEST_READCHECK   64
 Force use of readcheck. More...
 
#define TEST_NO_EXTRA   128
 
#define TEST_CORE_ON_SIGNAL   256
 Give core if signal. More...
 
#define TEST_NO_STACKTRACE   512
 
#define TEST_SIGINT   1024
 Allow sigint on threads. More...
 
#define TEST_SYNCHRONIZATION   2048
 get server to do sleep in \ some places More...
 
#define TEST_DO_QUICK_LEAK_CHECK   4096
 Do Valgrind leak check for \ each command. More...
 
#define SPECIAL_NO_NEW_FUNC   2 /* Skip new functions */
 
#define SPECIAL_SKIP_SHOW_DB   4 /* Don't allow 'show db' */
 
#define SPECIAL_NO_RESOLVE   64 /* Don't use gethostname */
 
#define SPECIAL_NO_HOST_CACHE   512 /* Don't cache hosts */
 
#define SPECIAL_SHORT_LOG_FORMAT   1024
 
#define mysql_tmpdir   (my_tmpdir(&mysql_tmpdir_list))
 
#define ER(X)   please_use_ER_THD_or_ER_DEFAULT_instead(X)
 

Typedefs

typedef Bitmap< 64 > Key_map
 
typedef int64 query_id_t
 

Enumerations

enum  enum_server_operational_state { SERVER_BOOTING, SERVER_OPERATING, SERVER_SHUTTING_DOWN }
 
enum  enum_slave_type_conversions { SLAVE_TYPE_CONVERSIONS_ALL_LOSSY, SLAVE_TYPE_CONVERSIONS_ALL_NON_LOSSY, SLAVE_TYPE_CONVERSIONS_ALL_UNSIGNED, SLAVE_TYPE_CONVERSIONS_ALL_SIGNED }
 
enum  enum_slave_rows_search_algorithms { SLAVE_ROWS_TABLE_SCAN = (1U << 0), SLAVE_ROWS_INDEX_SCAN = (1U << 1), SLAVE_ROWS_HASH_SCAN = (1U << 2) }
 
enum  enum_delay_key_write { DELAY_KEY_WRITE_NONE, DELAY_KEY_WRITE_ON, DELAY_KEY_WRITE_ALL }
 
enum  enum_binlog_error_action { IGNORE_ERROR = 0, ABORT_SERVER = 1 }
 

Functions

bool signal_restart_server ()
 Signal the server thread for restart. More...
 
void kill_mysql (void)
 
void refresh_status ()
 Reset global and session status variables. More...
 
bool is_secure_file_path (const char *path)
 Test a file path to determine if the path is compatible with the secure file path restriction. More...
 
ulong sql_rnd_with_mutex ()
 
struct System_status_varget_thd_status_var (THD *thd, bool *aggregated)
 
void set_remaining_args (int argc, char **argv)
 
int init_common_variables ()
 
void my_init_signals ()
 
bool gtid_server_init ()
 GTID initialization. More...
 
void gtid_server_cleanup ()
 GTID cleanup destroys objects and reset their pointer. More...
 
void clean_up_mysqld_mutexes ()
 
enum_server_operational_state get_server_state ()
 Returns the current state of the server : booting, operational or shutting down. More...
 
int * get_remaining_argc ()
 
char *** get_remaining_argv ()
 
query_id_t next_query_id ()
 
bool connection_events_loop_aborted ()
 
static void set_connection_events_loop_aborted (bool value)
 
bool is_help_or_validate_option ()
 Check if –help option or –validate-config is specified. More...
 
bool mysqld_offline_mode ()
 Get mysqld offline mode. More...
 
void set_mysqld_offline_mode (bool value)
 Set offline mode with a given value. More...
 
bool mysqld_partial_revokes ()
 Get status partial_revokes on server. More...
 
void set_mysqld_partial_revokes (bool value)
 Set partial_revokes with a given value. More...
 

Variables

MYSQL_PLUGIN_IMPORT CHARSET_INFOfiles_charset_info
 
MYSQL_PLUGIN_IMPORT CHARSET_INFOnational_charset_info
 
MYSQL_PLUGIN_IMPORT CHARSET_INFOtable_alias_charset
 
CHARSET_INFOcharacter_set_filesystem
 
bool opt_large_files
 
bool server_id_supplied
 
bool opt_bin_log
 
bool opt_log_slave_updates
 
bool opt_log_unsafe_statements
 
bool opt_general_log
 
bool opt_slow_log
 
bool opt_general_log_raw
 
ulonglong log_output_options
 
bool opt_log_queries_not_using_indexes
 
ulong opt_log_throttle_queries_not_using_indexes
 
bool opt_log_slow_extra
 
bool opt_disable_networking
 
bool opt_skip_show_db
 
bool opt_skip_name_resolve
 
bool opt_help
 
bool opt_verbose
 
bool opt_character_set_client_handshake
 
MYSQL_PLUGIN_IMPORT std::atomic< int32connection_events_loop_aborted_flag
 
bool opt_no_dd_upgrade
 
long opt_upgrade_mode
 
bool opt_initialize
 
bool opt_safe_user_create
 
bool opt_local_infile
 
bool opt_myisam_use_mmap
 
bool opt_slave_compressed_protocol
 
ulong slave_exec_mode_options
 
Rpl_global_filter rpl_global_filter
 
int32_t opt_regexp_time_limit
 
int32_t opt_regexp_stack_limit
 
bool opt_debugging
 
bool opt_validate_config
 
ulonglong slave_type_conversions_options
 
bool read_only
 
bool opt_readonly
 
bool super_read_only
 
bool opt_super_readonly
 
bool lower_case_file_system
 
ulonglong slave_rows_search_algorithms_options
 
bool opt_require_secure_transport
 
bool opt_slave_preserve_commit_order
 
uint slave_rows_last_search_algorithm_used
 
ulong mts_parallel_option
 
bool opt_allow_suspicious_udfs
 
const char * opt_secure_file_priv
 
bool opt_log_slow_admin_statements
 
bool opt_log_slow_slave_statements
 
bool sp_automatic_privileges
 
bool opt_noacl
 
bool opt_old_style_user_limits
 
bool trust_function_creators
 
bool check_proxy_users
 
bool mysql_native_password_proxy_users
 
bool sha256_password_proxy_users
 
const char * mysqld_unix_port
 
char * default_tz_name
 
Time_zonedefault_tz
 
const char * default_storage_engine
 
const char * default_tmp_storage_engine
 
ulonglong temptable_max_ram
 
bool temptable_use_mmap
 
bool using_udf_functions
 
bool locked_in_memory
 
bool opt_using_transactions
 
ulong current_pid
 
ulong expire_logs_days
 
ulong binlog_expire_logs_seconds
 
uint sync_binlog_period
 
uint sync_relaylog_period
 
uint sync_relayloginfo_period
 
uint sync_masterinfo_period
 
uint opt_mts_checkpoint_period
 
uint opt_mts_checkpoint_group
 
ulong opt_tc_log_size
 
ulong tc_log_max_pages_used
 
ulong tc_log_page_size
 
ulong tc_log_page_waits
 
bool relay_log_purge
 
bool relay_log_recovery
 
std::atomic< booloffline_mode
 
uint test_flags
 
uint select_errors
 
uint ha_open_options
 
uint protocol_version
 
uint mysqld_port
 
ulong delay_key_write_options
 
ulong opt_log_timestamps
 
const char * timestamp_type_names []
 
char * opt_general_logname
 
char * opt_slow_logname
 
char * opt_bin_logname
 
char * opt_relay_logname
 
char * mysql_home_ptr
 
char * pidfile_name_ptr
 
char * default_auth_plugin
 
uint default_password_lifetime
 
bool password_require_current
 
bool opt_partial_revokes
 
char * my_bind_addr_str
 
char * my_admin_bind_addr_str
 
uint mysqld_admin_port
 
bool listen_admin_interface_in_separate_thread
 
char glob_hostname [HOSTNAME_LENGTH+1]
 
char system_time_zone [30]
 
char * opt_init_file
 
const char * opt_tc_log_file
 
char server_uuid [UUID_LENGTH+1]
 
const char * server_uuid_ptr
 
const double log_10 [309]
 
ulong binlog_cache_use
 
ulong binlog_cache_disk_use
 
ulong binlog_stmt_cache_use
 
ulong binlog_stmt_cache_disk_use
 
ulong aborted_threads
 
ulong delayed_insert_timeout
 
ulong delayed_insert_limit
 
ulong delayed_queue_size
 
std::atomic< int32atomic_slave_open_temp_tables
 
ulong slow_launch_time
 
ulong table_cache_size
 
ulong schema_def_size
 
ulong stored_program_def_size
 
ulong table_def_size
 
ulong tablespace_def_size
 
MYSQL_PLUGIN_IMPORT ulong max_connections
 
ulong max_digest_length
 
ulong max_connect_errors
 
ulong connect_timeout
 
bool opt_slave_allow_batching
 
ulong slave_trans_retries
 
uint slave_net_timeout
 
ulong opt_mts_slave_parallel_workers
 
ulonglong opt_mts_pending_jobs_size_max
 
ulong rpl_stop_slave_timeout
 
bool log_bin_use_v1_row_events
 
ulong what_to_log
 
ulong flush_time
 
ulong max_prepared_stmt_count
 Limit of the total number of prepared statements in the server. More...
 
ulong prepared_stmt_count
 Current total number of prepared statements in the server. More...
 
ulong open_files_limit
 
bool clone_startup
 True, if restarted from a cloned database. More...
 
bool clone_recovery_error
 True, if clone recovery has failed. More...
 
ulong binlog_cache_size
 
ulong binlog_stmt_cache_size
 
ulonglong max_binlog_cache_size
 
ulonglong max_binlog_stmt_cache_size
 
int32 opt_binlog_max_flush_queue_time
 
long opt_binlog_group_commit_sync_delay
 
ulong opt_binlog_group_commit_sync_no_delay_count
 
ulong max_binlog_size
 
ulong max_relay_log_size
 
ulong slave_max_allowed_packet
 
ulong binlog_row_event_max_size
 
ulong binlog_checksum_options
 
ulong binlog_row_metadata
 
const char * binlog_checksum_type_names []
 BINLOG_CHECKSUM variable. More...
 
bool opt_master_verify_checksum
 
bool opt_slave_sql_verify_checksum
 
uint32 gtid_executed_compression_period
 
bool binlog_gtid_simple_recovery
 
ulong binlog_error_action
 
ulong locked_account_connection_count
 
const char * binlog_error_action_list []
 
ulong stored_program_cache_size
 Soft upper limit for number of sp_head objects that can be stored in the sp_cache for one connection. More...
 
ulong back_log
 
MYSQL_PLUGIN_IMPORT ulong server_id
 
time_t server_start_time
 
char * opt_mysql_tmpdir
 
size_t mysql_unpacked_real_data_home_len
 
MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list
 
const char * show_comp_option_name []
 
const char * first_keyword
 
const char * binary_keyword
 
MYSQL_PLUGIN_IMPORT const char * my_localhost
 
const char * in_left_expr_name
 name of reference on left expression in rewritten IN subquery More...
 
SHOW_VAR status_vars []
 
struct System_variables max_system_variables
 
struct System_status_var global_status_var
 
struct rand_struct sql_rand
 used by sql_class.cc:THD::THD() More...
 
handlertonmyisam_hton
 
handlertonheap_hton
 
handlertontemptable_hton
 
handlertoninnodb_hton
 
uint opt_server_id_bits
 
ulong opt_server_id_mask
 
const char * load_default_groups []
 
struct my_option my_long_early_options []
 
bool mysqld_server_started
 
MYSQL_PLUGIN_IMPORT int orig_argc
 
MYSQL_PLUGIN_IMPORT char ** orig_argv
 
my_thread_attr_t connection_attrib
 
bool old_mode
 compatibility option: More...
 
bool avoid_temporal_upgrade
 Compatibility option to prevent auto upgrade of old temporals during certain ALTER TABLE operations. More...
 
LEX_STRING opt_init_connect
 
LEX_STRING opt_init_slave
 
ulong connection_errors_internal
 Number of connection errors from internal server errors. More...
 
ulong connection_errors_peer_addr
 Number of errors when reading the peer address. More...
 
char * opt_log_error_suppression_list
 
char * opt_log_error_services
 
char * opt_protocol_compression_algorithms
 
uint host_cache_size
 The size of the host_cache. More...
 
ulong log_error_verbosity
 
bool persisted_globals_load
 
bool opt_keyring_operations
 
bool opt_table_encryption_privilege_check
 
char * opt_keyring_migration_user
 
char * opt_keyring_migration_host
 
char * opt_keyring_migration_password
 
char * opt_keyring_migration_socket
 
char * opt_keyring_migration_source
 
char * opt_keyring_migration_destination
 
ulong opt_keyring_migration_port
 
bool migrate_connect_options
 Variable to check if connection related options are set as part of keyring migration. More...
 
LEX_CSTRING sql_statement_names [(uint) SQLCOM_END+1]
 
thread_local MEM_ROOT ** THR_MALLOC
 
PSI_file_key key_file_binlog_cache
 
PSI_file_key key_file_binlog_index_cache
 
PSI_mutex_key key_LOCK_tc
 
PSI_mutex_key key_hash_filo_lock
 
PSI_mutex_key key_LOCK_error_log
 
PSI_mutex_key key_LOCK_thd_data
 
PSI_mutex_key key_LOCK_thd_sysvar
 
PSI_mutex_key key_LOCK_thd_protocol
 
PSI_mutex_key key_LOG_LOCK_log
 
PSI_mutex_key key_master_info_data_lock
 
PSI_mutex_key key_master_info_run_lock
 
PSI_mutex_key key_master_info_sleep_lock
 
PSI_mutex_key key_master_info_thd_lock
 
PSI_mutex_key key_master_info_rotate_lock
 
PSI_mutex_key key_mutex_slave_reporting_capability_err_lock
 
PSI_mutex_key key_relay_log_info_data_lock
 
PSI_mutex_key key_relay_log_info_sleep_lock
 
PSI_mutex_key key_relay_log_info_thd_lock
 
PSI_mutex_key key_relay_log_info_log_space_lock
 
PSI_mutex_key key_relay_log_info_run_lock
 
PSI_mutex_key key_mutex_slave_parallel_pend_jobs
 
PSI_mutex_key key_mutex_slave_parallel_worker
 
PSI_mutex_key key_mutex_slave_parallel_worker_count
 
PSI_mutex_key key_structure_guard_mutex
 
PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data
 
PSI_mutex_key key_LOCK_query_plan
 
PSI_mutex_key key_LOCK_thd_query
 
PSI_mutex_key key_LOCK_cost_const
 
PSI_mutex_key key_LOCK_current_cond
 
PSI_mutex_key key_RELAYLOG_LOCK_commit
 
PSI_mutex_key key_RELAYLOG_LOCK_commit_queue
 
PSI_mutex_key key_RELAYLOG_LOCK_done
 
PSI_mutex_key key_RELAYLOG_LOCK_flush_queue
 
PSI_mutex_key key_RELAYLOG_LOCK_index
 
PSI_mutex_key key_RELAYLOG_LOCK_log
 
PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos
 
PSI_mutex_key key_RELAYLOG_LOCK_sync
 
PSI_mutex_key key_RELAYLOG_LOCK_sync_queue
 
PSI_mutex_key key_RELAYLOG_LOCK_xids
 
PSI_mutex_key key_gtid_ensure_index_mutex
 
PSI_mutex_key key_mts_temp_table_LOCK
 
PSI_mutex_key key_mts_gaq_LOCK
 
PSI_mutex_key key_thd_timer_mutex
 
PSI_mutex_key key_commit_order_manager_mutex
 
PSI_mutex_key key_mutex_slave_worker_hash
 
PSI_rwlock_key key_rwlock_LOCK_logger
 
PSI_rwlock_key key_rwlock_channel_map_lock
 
PSI_rwlock_key key_rwlock_channel_lock
 
PSI_rwlock_key key_rwlock_receiver_sid_lock
 
PSI_rwlock_key key_rwlock_rpl_filter_lock
 
PSI_rwlock_key key_rwlock_channel_to_filter_lock
 
PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock
 
PSI_cond_key key_PAGE_cond
 
PSI_cond_key key_COND_active
 
PSI_cond_key key_COND_pool
 
PSI_cond_key key_COND_cache_status_changed
 
PSI_cond_key key_item_func_sleep_cond
 
PSI_cond_key key_master_info_data_cond
 
PSI_cond_key key_master_info_start_cond
 
PSI_cond_key key_master_info_stop_cond
 
PSI_cond_key key_master_info_sleep_cond
 
PSI_cond_key key_master_info_rotate_cond
 
PSI_cond_key key_relay_log_info_data_cond
 
PSI_cond_key key_relay_log_info_log_space_cond
 
PSI_cond_key key_relay_log_info_start_cond
 
PSI_cond_key key_relay_log_info_stop_cond
 
PSI_cond_key key_relay_log_info_sleep_cond
 
PSI_cond_key key_cond_slave_parallel_pend_jobs
 
PSI_cond_key key_cond_slave_parallel_worker
 
PSI_cond_key key_cond_mts_gaq
 
PSI_cond_key key_RELAYLOG_COND_done
 
PSI_cond_key key_RELAYLOG_update_cond
 
PSI_cond_key key_RELAYLOG_prep_xids_cond
 
PSI_cond_key key_gtid_ensure_index_cond
 
PSI_cond_key key_COND_thr_lock
 
PSI_cond_key key_cond_slave_worker_hash
 
PSI_cond_key key_commit_order_manager_cond
 
PSI_thread_key key_thread_bootstrap
 
PSI_thread_key key_thread_handle_manager
 
PSI_thread_key key_thread_one_connection
 
PSI_thread_key key_thread_compress_gtid_table
 
PSI_thread_key key_thread_parser_service
 
PSI_thread_key key_thread_handle_con_admin_sockets
 
PSI_file_key key_file_binlog
 
PSI_file_key key_file_binlog_index
 
PSI_file_key key_file_dbopt
 
PSI_file_key key_file_ERRMSG
 
PSI_file_key key_select_to_file
 
PSI_file_key key_file_fileparser
 
PSI_file_key key_file_frm
 
PSI_file_key key_file_load
 
PSI_file_key key_file_loadfile
 
PSI_file_key key_file_log_event_data
 
PSI_file_key key_file_log_event_info
 
PSI_file_key key_file_misc
 
PSI_file_key key_file_tclog
 
PSI_file_key key_file_trg
 
PSI_file_key key_file_trn
 
PSI_file_key key_file_init
 
PSI_file_key key_file_general_log
 
PSI_file_key key_file_slow_log
 
PSI_file_key key_file_relaylog
 
PSI_file_key key_file_relaylog_cache
 
PSI_file_key key_file_relaylog_index
 
PSI_file_key key_file_relaylog_index_cache
 
PSI_file_key key_file_sdi
 
PSI_file_key key_file_hash_join
 
PSI_socket_key key_socket_tcpip
 
PSI_socket_key key_socket_unix
 
PSI_socket_key key_socket_client_connection
 
PSI_stage_info stage_after_create
 
PSI_stage_info stage_alter_inplace_prepare
 
PSI_stage_info stage_alter_inplace
 
PSI_stage_info stage_alter_inplace_commit
 
PSI_stage_info stage_changing_master
 
PSI_stage_info stage_checking_master_version
 
PSI_stage_info stage_checking_permissions
 
PSI_stage_info stage_cleaning_up
 
PSI_stage_info stage_closing_tables
 
PSI_stage_info stage_compressing_gtid_table
 
PSI_stage_info stage_connecting_to_master
 
PSI_stage_info stage_converting_heap_to_ondisk
 
PSI_stage_info stage_copy_to_tmp_table
 
PSI_stage_info stage_creating_table
 
PSI_stage_info stage_creating_tmp_table
 
PSI_stage_info stage_deleting_from_main_table
 
PSI_stage_info stage_deleting_from_reference_tables
 
PSI_stage_info stage_discard_or_import_tablespace
 
PSI_stage_info stage_end
 
PSI_stage_info stage_executing
 
PSI_stage_info stage_execution_of_init_command
 
PSI_stage_info stage_explaining
 
PSI_stage_info stage_finished_reading_one_binlog_switching_to_next_binlog
 
PSI_stage_info stage_flushing_relay_log_and_master_info_repository
 
PSI_stage_info stage_flushing_relay_log_info_file
 
PSI_stage_info stage_freeing_items
 
PSI_stage_info stage_fulltext_initialization
 
PSI_stage_info stage_init
 
PSI_stage_info stage_killing_slave
 
PSI_stage_info stage_logging_slow_query
 
PSI_stage_info stage_making_temp_file_append_before_load_data
 
PSI_stage_info stage_manage_keys
 
PSI_stage_info stage_master_has_sent_all_binlog_to_slave
 
PSI_stage_info stage_opening_tables
 
PSI_stage_info stage_optimizing
 
PSI_stage_info stage_preparing
 
PSI_stage_info stage_purging_old_relay_logs
 
PSI_stage_info stage_query_end
 
PSI_stage_info stage_queueing_master_event_to_the_relay_log
 
PSI_stage_info stage_reading_event_from_the_relay_log
 
PSI_stage_info stage_registering_slave_on_master
 
PSI_stage_info stage_removing_tmp_table
 
PSI_stage_info stage_rename
 
PSI_stage_info stage_rename_result_table
 
PSI_stage_info stage_requesting_binlog_dump
 
PSI_stage_info stage_searching_rows_for_update
 
PSI_stage_info stage_sending_binlog_event_to_slave
 
PSI_stage_info stage_setup
 
PSI_stage_info stage_slave_has_read_all_relay_log
 
PSI_stage_info stage_slave_waiting_event_from_coordinator
 
PSI_stage_info stage_slave_waiting_for_workers_to_process_queue
 
PSI_stage_info stage_slave_waiting_worker_queue
 
PSI_stage_info stage_slave_waiting_worker_to_free_events
 
PSI_stage_info stage_slave_waiting_worker_to_release_partition
 
PSI_stage_info stage_slave_waiting_workers_to_exit
 
PSI_stage_info stage_rpl_apply_row_evt_write
 
PSI_stage_info stage_rpl_apply_row_evt_update
 
PSI_stage_info stage_rpl_apply_row_evt_delete
 
PSI_stage_info stage_sql_thd_waiting_until_delay
 
PSI_stage_info stage_statistics
 
PSI_stage_info stage_system_lock
 
PSI_stage_info stage_update
 
PSI_stage_info stage_updating
 
PSI_stage_info stage_updating_main_table
 
PSI_stage_info stage_updating_reference_tables
 
PSI_stage_info stage_user_sleep
 
PSI_stage_info stage_verifying_table
 
PSI_stage_info stage_waiting_for_gtid_to_be_committed
 
PSI_stage_info stage_waiting_for_handler_commit
 
PSI_stage_info stage_waiting_for_master_to_send_event
 
PSI_stage_info stage_waiting_for_master_update
 
PSI_stage_info stage_waiting_for_relay_log_space
 
PSI_stage_info stage_waiting_for_slave_mutex_on_exit
 
PSI_stage_info stage_waiting_for_slave_thread_to_start
 
PSI_stage_info stage_waiting_for_table_flush
 
PSI_stage_info stage_waiting_for_the_next_event_in_relay_log
 
PSI_stage_info stage_waiting_for_the_slave_thread_to_advance_position
 
PSI_stage_info stage_waiting_to_finalize_termination
 
PSI_stage_info stage_worker_waiting_for_its_turn_to_commit
 
PSI_stage_info stage_worker_waiting_for_commit_parent
 
PSI_stage_info stage_suspending
 
PSI_stage_info stage_starting
 
PSI_stage_info stage_waiting_for_no_channel_reference
 
PSI_stage_info stage_hook_begin_trans
 
PSI_statement_info sql_statement_info [(uint) SQLCOM_END+1]
 Statement instrumentation keys (sql). More...
 
PSI_statement_info com_statement_info [(uint) COM_END+1]
 Statement instrumentation keys (com). More...
 
PSI_statement_info stmt_info_rpl
 Statement instrumentation key for replication. More...
 
bool opt_large_pages
 
uint opt_large_page_size
 
char lc_messages_dir [FN_REFLEN]
 
char * lc_messages_dir_ptr
 
const char * log_error_dest
 
MYSQL_PLUGIN_IMPORT char reg_ext [FN_EXTLEN]
 
MYSQL_PLUGIN_IMPORT uint reg_ext_length
 
MYSQL_PLUGIN_IMPORT uint lower_case_table_names
 
long tc_heuristic_recover
 
ulong specialflag
 
size_t mysql_data_home_len
 
const char * mysql_real_data_home_ptr
 
MYSQL_PLUGIN_IMPORT char * mysql_data_home
 
MYSQL_PLUGIN_IMPORT char server_version [SERVER_VERSION_LENGTH]
 
MYSQL_PLUGIN_IMPORT char mysql_real_data_home []
 
char mysql_unpacked_real_data_home []
 
MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables
 
char default_logfile_name [FN_REFLEN]
 
bool log_bin_supplied
 
char default_binlogfile_name [FN_REFLEN]
 
MYSQL_PLUGIN_IMPORT char pidfile_name []
 
mysql_mutex_t LOCK_status
 
mysql_mutex_t LOCK_uuid_generator
 
mysql_mutex_t LOCK_crypt
 
mysql_mutex_t LOCK_manager
 
mysql_mutex_t LOCK_global_system_variables
 
mysql_mutex_t LOCK_user_conn
 
mysql_mutex_t LOCK_log_throttle_qni
 
mysql_mutex_t LOCK_prepared_stmt_count
 The below lock protects access to two global server variables: max_prepared_stmt_count and prepared_stmt_count. More...
 
mysql_mutex_t LOCK_error_messages
 
mysql_mutex_t LOCK_sql_slave_skip_counter
 
mysql_mutex_t LOCK_slave_net_timeout
 
mysql_mutex_t LOCK_slave_trans_dep_tracker
 
mysql_mutex_t LOCK_mandatory_roles
 
mysql_mutex_t LOCK_password_history
 
mysql_mutex_t LOCK_password_reuse_interval
 
mysql_mutex_t LOCK_default_password_lifetime
 
mysql_mutex_t LOCK_server_started
 
mysql_mutex_t LOCK_reset_gtid_table
 
mysql_mutex_t LOCK_compress_gtid_table
 
mysql_mutex_t LOCK_keyring_operations
 
mysql_mutex_t LOCK_collect_instance_log
 
mysql_mutex_t LOCK_tls_ctx_options
 
mysql_mutex_t LOCK_rotate_binlog_master_key
 
mysql_cond_t COND_server_started
 
mysql_cond_t COND_compress_gtid_table
 
mysql_cond_t COND_manager
 
mysql_rwlock_t LOCK_sys_init_connect
 
mysql_rwlock_t LOCK_sys_init_slave
 
mysql_rwlock_t LOCK_system_variables_hash
 
ulong opt_ssl_fips_mode
 
char * opt_disabled_storage_engines
 
sigset_t mysqld_signal_mask
 
std::atomic< query_id_tatomic_global_query_id
 
LEX_STRING opt_mandatory_roles
 
bool opt_mandatory_roles_cache
 
bool opt_always_activate_granted_roles
 

Macro Definition Documentation

◆ ER

#define ER (   X)    please_use_ER_THD_or_ER_DEFAULT_instead(X)

◆ mysql_tmpdir

#define mysql_tmpdir   (my_tmpdir(&mysql_tmpdir_list))

◆ OBSOLETE_TEST_BLOCKING

#define OBSOLETE_TEST_BLOCKING   8

◆ SPECIAL_NO_HOST_CACHE

#define SPECIAL_NO_HOST_CACHE   512 /* Don't cache hosts */

◆ SPECIAL_NO_NEW_FUNC

#define SPECIAL_NO_NEW_FUNC   2 /* Skip new functions */

◆ SPECIAL_NO_RESOLVE

#define SPECIAL_NO_RESOLVE   64 /* Don't use gethostname */

◆ SPECIAL_SHORT_LOG_FORMAT

#define SPECIAL_SHORT_LOG_FORMAT   1024

◆ SPECIAL_SKIP_SHOW_DB

#define SPECIAL_SKIP_SHOW_DB   4 /* Don't allow 'show db' */

◆ TEST_CORE_ON_SIGNAL

#define TEST_CORE_ON_SIGNAL   256

Give core if signal.

◆ TEST_DO_QUICK_LEAK_CHECK

#define TEST_DO_QUICK_LEAK_CHECK   4096

Do Valgrind leak check for \ each command.

◆ TEST_KEEP_TMP_TABLES

#define TEST_KEEP_TMP_TABLES   16

◆ TEST_MIT_THREAD

#define TEST_MIT_THREAD   4

◆ TEST_NO_EXTRA

#define TEST_NO_EXTRA   128

◆ TEST_NO_KEY_GROUP

#define TEST_NO_KEY_GROUP   2

◆ TEST_NO_STACKTRACE

#define TEST_NO_STACKTRACE   512

◆ TEST_PRINT_CACHED_TABLES

#define TEST_PRINT_CACHED_TABLES   1

◆ TEST_READCHECK

#define TEST_READCHECK   64

Force use of readcheck.

◆ TEST_SIGINT

#define TEST_SIGINT   1024

Allow sigint on threads.

◆ TEST_SYNCHRONIZATION

#define TEST_SYNCHRONIZATION   2048

get server to do sleep in \ some places

Typedef Documentation

◆ Key_map

typedef Bitmap<64> Key_map

◆ query_id_t

typedef int64 query_id_t

Enumeration Type Documentation

◆ enum_binlog_error_action

Enumerator
IGNORE_ERROR 

Ignore the error and let server continue without binlogging.

ABORT_SERVER 

Abort the server.

◆ enum_delay_key_write

Enumerator
DELAY_KEY_WRITE_NONE 
DELAY_KEY_WRITE_ON 
DELAY_KEY_WRITE_ALL 

◆ enum_server_operational_state

Enumerator
SERVER_BOOTING 
SERVER_OPERATING 
SERVER_SHUTTING_DOWN 

◆ enum_slave_rows_search_algorithms

Enumerator
SLAVE_ROWS_TABLE_SCAN 
SLAVE_ROWS_INDEX_SCAN 
SLAVE_ROWS_HASH_SCAN 

◆ enum_slave_type_conversions

Enumerator
SLAVE_TYPE_CONVERSIONS_ALL_LOSSY 
SLAVE_TYPE_CONVERSIONS_ALL_NON_LOSSY 
SLAVE_TYPE_CONVERSIONS_ALL_UNSIGNED 
SLAVE_TYPE_CONVERSIONS_ALL_SIGNED 

Function Documentation

◆ clean_up_mysqld_mutexes()

void clean_up_mysqld_mutexes ( )

◆ connection_events_loop_aborted()

bool connection_events_loop_aborted ( )
inline

◆ get_remaining_argc()

int* get_remaining_argc ( )

◆ get_remaining_argv()

char*** get_remaining_argv ( )

◆ get_server_state()

enum_server_operational_state get_server_state ( )

Returns the current state of the server : booting, operational or shutting down.

Returns
SERVER_BOOTING Server is not operational. It is starting. SERVER_OPERATING Server is fully initialized and operating. SERVER_SHUTTING_DOWN Server is shutting down.

◆ get_thd_status_var()

struct System_status_var* get_thd_status_var ( THD thd,
bool aggregated 
)

◆ gtid_server_cleanup()

void gtid_server_cleanup ( )

GTID cleanup destroys objects and reset their pointer.

Function is reentrant.

◆ gtid_server_init()

bool gtid_server_init ( )

GTID initialization.

Returns
true if allocation does not succeed false if OK

◆ init_common_variables()

int init_common_variables ( )

◆ is_help_or_validate_option()

bool is_help_or_validate_option ( )
inline

Check if –help option or –validate-config is specified.

Return values
falseNeither 'help' or 'validate-config' option is enabled.
trueEither 'help' or 'validate-config' or both options are enabled.

◆ is_secure_file_path()

bool is_secure_file_path ( const char *  path)

Test a file path to determine if the path is compatible with the secure file path restriction.

Parameters
pathnull terminated character string
Returns
Return values
trueThe path is secure
falseThe path isn't secure

◆ kill_mysql()

void kill_mysql ( void  )

◆ my_init_signals()

void my_init_signals ( )

◆ mysqld_offline_mode()

bool mysqld_offline_mode ( )
inline

Get mysqld offline mode.

Returns
a bool indicating the offline mode status of the server.

◆ mysqld_partial_revokes()

bool mysqld_partial_revokes ( )

Get status partial_revokes on server.

Returns
a bool indicating partial_revokes status of the server.
Return values
trueParital revokes is ON
flasePartial revokes is OFF

◆ next_query_id()

query_id_t next_query_id ( )
inline

◆ refresh_status()

void refresh_status ( )

Reset global and session status variables.

◆ set_connection_events_loop_aborted()

static void set_connection_events_loop_aborted ( bool  value)
inlinestatic

◆ set_mysqld_offline_mode()

void set_mysqld_offline_mode ( bool  value)
inline

Set offline mode with a given value.

Parameters
valuetrue or false indicating the offline mode status of server.

◆ set_mysqld_partial_revokes()

void set_mysqld_partial_revokes ( bool  value)

Set partial_revokes with a given value.

Parameters
valuetrue or false indicating the status of partial revokes turned ON/OFF on server.

◆ set_remaining_args()

void set_remaining_args ( int  argc,
char **  argv 
)

◆ signal_restart_server()

bool signal_restart_server ( )

Signal the server thread for restart.

Returns
false if the thread has been successfully signalled for restart else true.

◆ sql_rnd_with_mutex()

ulong sql_rnd_with_mutex ( )

Variable Documentation

◆ aborted_threads

ulong aborted_threads

◆ atomic_global_query_id

std::atomic<query_id_t> atomic_global_query_id

◆ atomic_slave_open_temp_tables

std::atomic<int32> atomic_slave_open_temp_tables

◆ avoid_temporal_upgrade

bool avoid_temporal_upgrade

Compatibility option to prevent auto upgrade of old temporals during certain ALTER TABLE operations.

◆ back_log

ulong back_log

◆ binary_keyword

const char * binary_keyword

◆ binlog_cache_disk_use

ulong binlog_cache_disk_use

◆ binlog_cache_size

ulong binlog_cache_size

◆ binlog_cache_use

ulong binlog_cache_use

◆ binlog_checksum_options

ulong binlog_checksum_options

◆ binlog_checksum_type_names

const char* binlog_checksum_type_names[]

BINLOG_CHECKSUM variable.

◆ binlog_error_action

ulong binlog_error_action

◆ binlog_error_action_list

const char* binlog_error_action_list[]

◆ binlog_expire_logs_seconds

ulong binlog_expire_logs_seconds

◆ binlog_gtid_simple_recovery

bool binlog_gtid_simple_recovery

◆ binlog_row_event_max_size

ulong binlog_row_event_max_size

◆ binlog_row_metadata

ulong binlog_row_metadata

◆ binlog_stmt_cache_disk_use

ulong binlog_stmt_cache_disk_use

◆ binlog_stmt_cache_size

ulong binlog_stmt_cache_size

◆ binlog_stmt_cache_use

ulong binlog_stmt_cache_use

◆ character_set_filesystem

CHARSET_INFO* character_set_filesystem

◆ check_proxy_users

bool check_proxy_users

◆ clone_recovery_error

bool clone_recovery_error

True, if clone recovery has failed.

For managed server we restart server again with old databse files.

◆ clone_startup

bool clone_startup

True, if restarted from a cloned database.

This information is needed by GR to set some configurations right after clone.

◆ com_statement_info

PSI_statement_info com_statement_info[(uint) COM_END+1]

Statement instrumentation keys (com).

The last entry, at [COM_END], is for packet errors.

◆ COND_compress_gtid_table

mysql_cond_t COND_compress_gtid_table

◆ COND_manager

mysql_cond_t COND_manager

◆ COND_server_started

mysql_cond_t COND_server_started

◆ connect_timeout

ulong connect_timeout

◆ connection_errors_internal

ulong connection_errors_internal

Number of connection errors from internal server errors.

◆ connection_errors_peer_addr

ulong connection_errors_peer_addr

Number of errors when reading the peer address.

◆ connection_events_loop_aborted_flag

MYSQL_PLUGIN_IMPORT std::atomic<int32> connection_events_loop_aborted_flag

◆ current_pid

ulong current_pid

◆ default_auth_plugin

char* default_auth_plugin

◆ default_binlogfile_name

char default_binlogfile_name[FN_REFLEN]

◆ default_logfile_name

char default_logfile_name[FN_REFLEN]

◆ default_password_lifetime

uint default_password_lifetime

◆ default_storage_engine

const char* default_storage_engine

◆ default_tmp_storage_engine

const char* default_tmp_storage_engine

◆ default_tz

Time_zone* default_tz

◆ default_tz_name

char* default_tz_name

◆ delay_key_write_options

ulong delay_key_write_options

◆ delayed_insert_limit

ulong delayed_insert_limit

◆ delayed_insert_timeout

ulong delayed_insert_timeout

◆ delayed_queue_size

ulong delayed_queue_size

◆ expire_logs_days

ulong expire_logs_days

◆ files_charset_info

MYSQL_PLUGIN_IMPORT CHARSET_INFO* files_charset_info

◆ first_keyword

const char* first_keyword

◆ flush_time

ulong flush_time

◆ glob_hostname

char glob_hostname[HOSTNAME_LENGTH+1]

◆ global_status_var

struct System_status_var global_status_var

◆ global_system_variables

MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables

◆ gtid_executed_compression_period

uint32 gtid_executed_compression_period

◆ ha_open_options

uint ha_open_options

◆ heap_hton

handlerton* heap_hton

◆ host_cache_size

uint host_cache_size

The size of the host_cache.

◆ in_left_expr_name

const char* in_left_expr_name

name of reference on left expression in rewritten IN subquery

◆ innodb_hton

handlerton* innodb_hton

◆ key_commit_order_manager_cond

PSI_cond_key key_commit_order_manager_cond

◆ key_commit_order_manager_mutex

PSI_mutex_key key_commit_order_manager_mutex

◆ key_COND_active

PSI_cond_key key_COND_active

◆ key_COND_cache_status_changed

PSI_cond_key key_COND_cache_status_changed

◆ key_cond_mts_gaq

PSI_cond_key key_cond_mts_gaq

◆ key_COND_pool

PSI_cond_key key_COND_pool

◆ key_cond_slave_parallel_pend_jobs

PSI_cond_key key_cond_slave_parallel_pend_jobs

◆ key_cond_slave_parallel_worker

PSI_cond_key key_cond_slave_parallel_worker

◆ key_cond_slave_worker_hash

PSI_cond_key key_cond_slave_worker_hash

◆ key_COND_thr_lock

PSI_cond_key key_COND_thr_lock

◆ key_file_binlog

PSI_file_key key_file_binlog

◆ key_file_binlog_cache

PSI_file_key key_file_binlog_cache

◆ key_file_binlog_index

PSI_file_key key_file_binlog_index

◆ key_file_binlog_index_cache

PSI_file_key key_file_binlog_index_cache

◆ key_file_dbopt

PSI_file_key key_file_dbopt

◆ key_file_ERRMSG

PSI_file_key key_file_ERRMSG

◆ key_file_fileparser

PSI_file_key key_file_fileparser

◆ key_file_frm

PSI_file_key key_file_frm

◆ key_file_general_log

PSI_file_key key_file_general_log

◆ key_file_hash_join

PSI_file_key key_file_hash_join

◆ key_file_init

PSI_file_key key_file_init

◆ key_file_load

PSI_file_key key_file_load

◆ key_file_loadfile

PSI_file_key key_file_loadfile

◆ key_file_log_event_data

PSI_file_key key_file_log_event_data

◆ key_file_log_event_info

PSI_file_key key_file_log_event_info

◆ key_file_misc

PSI_file_key key_file_misc

◆ key_file_relaylog

PSI_file_key key_file_relaylog

◆ key_file_relaylog_cache

PSI_file_key key_file_relaylog_cache

◆ key_file_relaylog_index

PSI_file_key key_file_relaylog_index

◆ key_file_relaylog_index_cache

PSI_file_key key_file_relaylog_index_cache

◆ key_file_sdi

PSI_file_key key_file_sdi

◆ key_file_slow_log

PSI_file_key key_file_slow_log

◆ key_file_tclog

PSI_file_key key_file_tclog

◆ key_file_trg

PSI_file_key key_file_trg

◆ key_file_trn

PSI_file_key key_file_trn

◆ key_gtid_ensure_index_cond

PSI_cond_key key_gtid_ensure_index_cond

◆ key_gtid_ensure_index_mutex

PSI_mutex_key key_gtid_ensure_index_mutex

◆ key_hash_filo_lock

PSI_mutex_key key_hash_filo_lock

◆ key_item_func_sleep_cond

PSI_cond_key key_item_func_sleep_cond

◆ key_LOCK_cost_const

PSI_mutex_key key_LOCK_cost_const

◆ key_LOCK_current_cond

PSI_mutex_key key_LOCK_current_cond

◆ key_LOCK_error_log

PSI_mutex_key key_LOCK_error_log

◆ key_LOCK_query_plan

PSI_mutex_key key_LOCK_query_plan

◆ key_LOCK_tc

PSI_mutex_key key_LOCK_tc

◆ key_LOCK_thd_data

PSI_mutex_key key_LOCK_thd_data

◆ key_LOCK_thd_protocol

PSI_mutex_key key_LOCK_thd_protocol

◆ key_LOCK_thd_query

PSI_mutex_key key_LOCK_thd_query

◆ key_LOCK_thd_sysvar

PSI_mutex_key key_LOCK_thd_sysvar

◆ key_LOG_LOCK_log

PSI_mutex_key key_LOG_LOCK_log

◆ key_master_info_data_cond

PSI_cond_key key_master_info_data_cond

◆ key_master_info_data_lock

PSI_mutex_key key_master_info_data_lock

◆ key_master_info_rotate_cond

PSI_cond_key key_master_info_rotate_cond

◆ key_master_info_rotate_lock

PSI_mutex_key key_master_info_rotate_lock

◆ key_master_info_run_lock

PSI_mutex_key key_master_info_run_lock

◆ key_master_info_sleep_cond

PSI_cond_key key_master_info_sleep_cond

◆ key_master_info_sleep_lock

PSI_mutex_key key_master_info_sleep_lock

◆ key_master_info_start_cond

PSI_cond_key key_master_info_start_cond

◆ key_master_info_stop_cond

PSI_cond_key key_master_info_stop_cond

◆ key_master_info_thd_lock

PSI_mutex_key key_master_info_thd_lock

◆ key_mts_gaq_LOCK

PSI_mutex_key key_mts_gaq_LOCK

◆ key_mts_temp_table_LOCK

PSI_mutex_key key_mts_temp_table_LOCK

◆ key_mutex_slave_parallel_pend_jobs

PSI_mutex_key key_mutex_slave_parallel_pend_jobs

◆ key_mutex_slave_parallel_worker

PSI_mutex_key key_mutex_slave_parallel_worker

◆ key_mutex_slave_parallel_worker_count

PSI_mutex_key key_mutex_slave_parallel_worker_count

◆ key_mutex_slave_reporting_capability_err_lock

PSI_mutex_key key_mutex_slave_reporting_capability_err_lock

◆ key_mutex_slave_worker_hash

PSI_mutex_key key_mutex_slave_worker_hash

◆ key_PAGE_cond

PSI_cond_key key_PAGE_cond

◆ key_relay_log_info_data_cond

PSI_cond_key key_relay_log_info_data_cond

◆ key_relay_log_info_data_lock

PSI_mutex_key key_relay_log_info_data_lock

◆ key_relay_log_info_log_space_cond

PSI_cond_key key_relay_log_info_log_space_cond

◆ key_relay_log_info_log_space_lock

PSI_mutex_key key_relay_log_info_log_space_lock

◆ key_relay_log_info_run_lock

PSI_mutex_key key_relay_log_info_run_lock

◆ key_relay_log_info_sleep_cond

PSI_cond_key key_relay_log_info_sleep_cond

◆ key_relay_log_info_sleep_lock

PSI_mutex_key key_relay_log_info_sleep_lock

◆ key_relay_log_info_start_cond

PSI_cond_key key_relay_log_info_start_cond

◆ key_relay_log_info_stop_cond

PSI_cond_key key_relay_log_info_stop_cond

◆ key_relay_log_info_thd_lock

PSI_mutex_key key_relay_log_info_thd_lock

◆ key_RELAYLOG_COND_done

PSI_cond_key key_RELAYLOG_COND_done

◆ key_RELAYLOG_LOCK_commit

PSI_mutex_key key_RELAYLOG_LOCK_commit

◆ key_RELAYLOG_LOCK_commit_queue

PSI_mutex_key key_RELAYLOG_LOCK_commit_queue

◆ key_RELAYLOG_LOCK_done

PSI_mutex_key key_RELAYLOG_LOCK_done

◆ key_RELAYLOG_LOCK_flush_queue

PSI_mutex_key key_RELAYLOG_LOCK_flush_queue

◆ key_RELAYLOG_LOCK_index

PSI_mutex_key key_RELAYLOG_LOCK_index

◆ key_RELAYLOG_LOCK_log

PSI_mutex_key key_RELAYLOG_LOCK_log

◆ key_RELAYLOG_LOCK_log_end_pos

PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos

◆ key_RELAYLOG_LOCK_sync

PSI_mutex_key key_RELAYLOG_LOCK_sync

◆ key_RELAYLOG_LOCK_sync_queue

PSI_mutex_key key_RELAYLOG_LOCK_sync_queue

◆ key_RELAYLOG_LOCK_xids

PSI_mutex_key key_RELAYLOG_LOCK_xids

◆ key_RELAYLOG_prep_xids_cond

PSI_cond_key key_RELAYLOG_prep_xids_cond

◆ key_RELAYLOG_update_cond

PSI_cond_key key_RELAYLOG_update_cond

◆ key_rwlock_channel_lock

PSI_rwlock_key key_rwlock_channel_lock

◆ key_rwlock_channel_map_lock

PSI_rwlock_key key_rwlock_channel_map_lock

◆ key_rwlock_channel_to_filter_lock

PSI_rwlock_key key_rwlock_channel_to_filter_lock

◆ key_rwlock_LOCK_logger

PSI_rwlock_key key_rwlock_LOCK_logger

◆ key_rwlock_receiver_sid_lock

PSI_rwlock_key key_rwlock_receiver_sid_lock

◆ key_rwlock_resource_group_mgr_map_lock

PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock

◆ key_rwlock_rpl_filter_lock

PSI_rwlock_key key_rwlock_rpl_filter_lock

◆ key_select_to_file

PSI_file_key key_select_to_file

◆ key_socket_client_connection

PSI_socket_key key_socket_client_connection

◆ key_socket_tcpip

PSI_socket_key key_socket_tcpip

◆ key_socket_unix

PSI_socket_key key_socket_unix

◆ key_structure_guard_mutex

PSI_mutex_key key_structure_guard_mutex

◆ key_TABLE_SHARE_LOCK_ha_data

PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data

◆ key_thd_timer_mutex

PSI_mutex_key key_thd_timer_mutex

◆ key_thread_bootstrap

PSI_thread_key key_thread_bootstrap

◆ key_thread_compress_gtid_table

PSI_thread_key key_thread_compress_gtid_table

◆ key_thread_handle_con_admin_sockets

PSI_thread_key key_thread_handle_con_admin_sockets

◆ key_thread_handle_manager

PSI_thread_key key_thread_handle_manager

◆ key_thread_one_connection

PSI_thread_key key_thread_one_connection

◆ key_thread_parser_service

PSI_thread_key key_thread_parser_service

◆ lc_messages_dir

char lc_messages_dir[FN_REFLEN]

◆ lc_messages_dir_ptr

char* lc_messages_dir_ptr

◆ listen_admin_interface_in_separate_thread

bool listen_admin_interface_in_separate_thread

◆ load_default_groups

const char* load_default_groups[]

◆ LOCK_collect_instance_log

mysql_mutex_t LOCK_collect_instance_log

◆ LOCK_compress_gtid_table

mysql_mutex_t LOCK_compress_gtid_table

◆ LOCK_crypt

mysql_mutex_t LOCK_crypt

◆ LOCK_default_password_lifetime

mysql_mutex_t LOCK_default_password_lifetime

◆ LOCK_error_messages

mysql_mutex_t LOCK_error_messages

◆ LOCK_global_system_variables

mysql_mutex_t LOCK_global_system_variables

◆ LOCK_keyring_operations

mysql_mutex_t LOCK_keyring_operations

◆ LOCK_log_throttle_qni

mysql_mutex_t LOCK_log_throttle_qni

◆ LOCK_manager

mysql_mutex_t LOCK_manager

◆ LOCK_mandatory_roles

mysql_mutex_t LOCK_mandatory_roles

◆ LOCK_password_history

mysql_mutex_t LOCK_password_history

◆ LOCK_password_reuse_interval

mysql_mutex_t LOCK_password_reuse_interval

◆ LOCK_prepared_stmt_count

mysql_mutex_t LOCK_prepared_stmt_count

The below lock protects access to two global server variables: max_prepared_stmt_count and prepared_stmt_count.

These variables set the limit and hold the current total number of prepared statements in the server, respectively. As PREPARE/DEALLOCATE rate in a loaded server may be fairly high, we need a dedicated lock.

◆ LOCK_reset_gtid_table

mysql_mutex_t LOCK_reset_gtid_table

◆ LOCK_rotate_binlog_master_key

mysql_mutex_t LOCK_rotate_binlog_master_key

◆ LOCK_server_started

mysql_mutex_t LOCK_server_started

◆ LOCK_slave_net_timeout

mysql_mutex_t LOCK_slave_net_timeout

◆ LOCK_slave_trans_dep_tracker

mysql_mutex_t LOCK_slave_trans_dep_tracker

◆ LOCK_sql_slave_skip_counter

mysql_mutex_t LOCK_sql_slave_skip_counter

◆ LOCK_status

mysql_mutex_t LOCK_status

◆ LOCK_sys_init_connect

mysql_rwlock_t LOCK_sys_init_connect

◆ LOCK_sys_init_slave

mysql_rwlock_t LOCK_sys_init_slave

◆ LOCK_system_variables_hash

mysql_rwlock_t LOCK_system_variables_hash

◆ LOCK_tls_ctx_options

mysql_mutex_t LOCK_tls_ctx_options

◆ LOCK_user_conn

mysql_mutex_t LOCK_user_conn

◆ LOCK_uuid_generator

mysql_mutex_t LOCK_uuid_generator

◆ locked_account_connection_count

ulong locked_account_connection_count

◆ locked_in_memory

bool locked_in_memory

◆ log_10

const double log_10[309]

◆ log_bin_supplied

bool log_bin_supplied

◆ log_bin_use_v1_row_events

bool log_bin_use_v1_row_events

◆ log_error_dest

const char* log_error_dest

◆ log_error_verbosity

ulong log_error_verbosity

◆ log_output_options

ulonglong log_output_options

◆ lower_case_file_system

bool lower_case_file_system

◆ lower_case_table_names

MYSQL_PLUGIN_IMPORT uint lower_case_table_names

◆ max_binlog_cache_size

ulonglong max_binlog_cache_size

◆ max_binlog_size

ulong max_binlog_size

◆ max_binlog_stmt_cache_size

ulonglong max_binlog_stmt_cache_size

◆ max_connect_errors

ulong max_connect_errors

◆ max_connections

MYSQL_PLUGIN_IMPORT ulong max_connections

◆ max_digest_length

ulong max_digest_length

◆ max_prepared_stmt_count

ulong max_prepared_stmt_count

Limit of the total number of prepared statements in the server.

Is necessary to protect the server against out-of-memory attacks.

◆ max_relay_log_size

ulong max_relay_log_size

◆ max_system_variables

struct System_variables max_system_variables

◆ migrate_connect_options

bool migrate_connect_options

Variable to check if connection related options are set as part of keyring migration.

◆ mts_parallel_option

ulong mts_parallel_option

◆ my_admin_bind_addr_str

char* my_admin_bind_addr_str

◆ my_bind_addr_str

char* my_bind_addr_str

◆ my_localhost

MYSQL_PLUGIN_IMPORT const char* my_localhost

◆ my_long_early_options

struct my_option my_long_early_options[]

◆ myisam_hton

handlerton* myisam_hton

◆ mysql_data_home

MYSQL_PLUGIN_IMPORT char* mysql_data_home

◆ mysql_data_home_len

size_t mysql_data_home_len

◆ mysql_home_ptr

char* mysql_home_ptr

◆ mysql_native_password_proxy_users

bool mysql_native_password_proxy_users

◆ mysql_real_data_home

MYSQL_PLUGIN_IMPORT char mysql_real_data_home[]

◆ mysql_real_data_home_ptr

const char* mysql_real_data_home_ptr

◆ mysql_tmpdir_list

MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list

◆ mysql_unpacked_real_data_home

char mysql_unpacked_real_data_home[]

◆ mysql_unpacked_real_data_home_len

size_t mysql_unpacked_real_data_home_len

◆ mysqld_admin_port

uint mysqld_admin_port

◆ mysqld_port

uint mysqld_port

◆ mysqld_server_started

bool mysqld_server_started

◆ mysqld_signal_mask

sigset_t mysqld_signal_mask

◆ mysqld_unix_port

const char* mysqld_unix_port

◆ national_charset_info

MYSQL_PLUGIN_IMPORT CHARSET_INFO* national_charset_info

◆ offline_mode

std::atomic<bool> offline_mode

◆ old_mode

bool old_mode

compatibility option:

  • index usage hints (USE INDEX without a FOR clause) behave as in 5.0

◆ open_files_limit

ulong open_files_limit

◆ opt_allow_suspicious_udfs

bool opt_allow_suspicious_udfs

◆ opt_always_activate_granted_roles

bool opt_always_activate_granted_roles

◆ opt_bin_log

bool opt_bin_log

◆ opt_bin_logname

char * opt_bin_logname

◆ opt_binlog_group_commit_sync_delay

long opt_binlog_group_commit_sync_delay

◆ opt_binlog_group_commit_sync_no_delay_count

ulong opt_binlog_group_commit_sync_no_delay_count

◆ opt_binlog_max_flush_queue_time

int32 opt_binlog_max_flush_queue_time

◆ opt_character_set_client_handshake

bool opt_character_set_client_handshake

◆ opt_debugging

bool opt_debugging

◆ opt_disable_networking

bool opt_disable_networking

◆ opt_disabled_storage_engines

char* opt_disabled_storage_engines

◆ opt_general_log

bool opt_general_log

◆ opt_general_log_raw

bool opt_general_log_raw

◆ opt_general_logname

char* opt_general_logname

◆ opt_help

bool opt_help

◆ opt_init_connect

LEX_STRING opt_init_connect

◆ opt_init_file

char * opt_init_file

◆ opt_init_slave

LEX_STRING opt_init_slave

◆ opt_initialize

bool opt_initialize

◆ opt_keyring_migration_destination

char* opt_keyring_migration_destination

◆ opt_keyring_migration_host

char* opt_keyring_migration_host

◆ opt_keyring_migration_password

char* opt_keyring_migration_password

◆ opt_keyring_migration_port

ulong opt_keyring_migration_port

◆ opt_keyring_migration_socket

char* opt_keyring_migration_socket

◆ opt_keyring_migration_source

char* opt_keyring_migration_source

◆ opt_keyring_migration_user

char* opt_keyring_migration_user

◆ opt_keyring_operations

bool opt_keyring_operations

◆ opt_large_files

bool opt_large_files

◆ opt_large_page_size

uint opt_large_page_size

◆ opt_large_pages

bool opt_large_pages

◆ opt_local_infile

bool opt_local_infile

◆ opt_log_error_services

char* opt_log_error_services

◆ opt_log_error_suppression_list

char* opt_log_error_suppression_list

◆ opt_log_queries_not_using_indexes

bool opt_log_queries_not_using_indexes

◆ opt_log_slave_updates

bool opt_log_slave_updates

◆ opt_log_slow_admin_statements

bool opt_log_slow_admin_statements

◆ opt_log_slow_extra

bool opt_log_slow_extra

◆ opt_log_slow_slave_statements

bool opt_log_slow_slave_statements

◆ opt_log_throttle_queries_not_using_indexes

ulong opt_log_throttle_queries_not_using_indexes

◆ opt_log_timestamps

ulong opt_log_timestamps

◆ opt_log_unsafe_statements

bool opt_log_unsafe_statements

◆ opt_mandatory_roles

LEX_STRING opt_mandatory_roles

◆ opt_mandatory_roles_cache

bool opt_mandatory_roles_cache

◆ opt_master_verify_checksum

bool opt_master_verify_checksum

◆ opt_mts_checkpoint_group

uint opt_mts_checkpoint_group

◆ opt_mts_checkpoint_period

uint opt_mts_checkpoint_period

◆ opt_mts_pending_jobs_size_max

ulonglong opt_mts_pending_jobs_size_max

◆ opt_mts_slave_parallel_workers

ulong opt_mts_slave_parallel_workers

◆ opt_myisam_use_mmap

bool opt_myisam_use_mmap

◆ opt_mysql_tmpdir

char* opt_mysql_tmpdir

◆ opt_no_dd_upgrade

bool opt_no_dd_upgrade

◆ opt_noacl

bool opt_noacl

◆ opt_old_style_user_limits

bool opt_old_style_user_limits

◆ opt_partial_revokes

bool opt_partial_revokes

◆ opt_protocol_compression_algorithms

char* opt_protocol_compression_algorithms

◆ opt_readonly

bool opt_readonly

◆ opt_regexp_stack_limit

int32_t opt_regexp_stack_limit

◆ opt_regexp_time_limit

int32_t opt_regexp_time_limit

◆ opt_relay_logname

char * opt_relay_logname

◆ opt_require_secure_transport

bool opt_require_secure_transport

◆ opt_safe_user_create

bool opt_safe_user_create

◆ opt_secure_file_priv

const char* opt_secure_file_priv

◆ opt_server_id_bits

uint opt_server_id_bits

◆ opt_server_id_mask

ulong opt_server_id_mask

◆ opt_skip_name_resolve

bool opt_skip_name_resolve

◆ opt_skip_show_db

bool opt_skip_show_db

◆ opt_slave_allow_batching

bool opt_slave_allow_batching

◆ opt_slave_compressed_protocol

bool opt_slave_compressed_protocol

◆ opt_slave_preserve_commit_order

bool opt_slave_preserve_commit_order

◆ opt_slave_sql_verify_checksum

bool opt_slave_sql_verify_checksum

◆ opt_slow_log

bool opt_slow_log

◆ opt_slow_logname

char * opt_slow_logname

◆ opt_ssl_fips_mode

ulong opt_ssl_fips_mode

◆ opt_super_readonly

bool opt_super_readonly

◆ opt_table_encryption_privilege_check

bool opt_table_encryption_privilege_check

◆ opt_tc_log_file

const char* opt_tc_log_file

◆ opt_tc_log_size

ulong opt_tc_log_size

◆ opt_upgrade_mode

long opt_upgrade_mode

◆ opt_using_transactions

bool opt_using_transactions

◆ opt_validate_config

bool opt_validate_config

◆ opt_verbose

bool opt_verbose

◆ orig_argc

MYSQL_PLUGIN_IMPORT int orig_argc

◆ orig_argv

MYSQL_PLUGIN_IMPORT char** orig_argv

◆ password_require_current

bool password_require_current

◆ persisted_globals_load

bool persisted_globals_load

◆ pidfile_name

MYSQL_PLUGIN_IMPORT char pidfile_name[]

◆ pidfile_name_ptr

char * pidfile_name_ptr

◆ prepared_stmt_count

ulong prepared_stmt_count

Current total number of prepared statements in the server.

This number is exact, and therefore may not be equal to the difference between ‘com_stmt_prepare’ and ‘com_stmt_close’ (global status variables), as the latter ones account for all registered attempts to prepare a statement (including unsuccessful ones). Prepared statements are currently connection-local: if the same SQL query text is prepared in two different connections, this counts as two distinct prepared statements.

◆ protocol_version

uint protocol_version

◆ read_only

bool read_only

◆ reg_ext

◆ reg_ext_length

MYSQL_PLUGIN_IMPORT uint reg_ext_length

◆ relay_log_purge

bool relay_log_purge

◆ relay_log_recovery

bool relay_log_recovery

◆ rpl_global_filter

Rpl_global_filter rpl_global_filter

◆ rpl_stop_slave_timeout

ulong rpl_stop_slave_timeout

◆ schema_def_size

ulong schema_def_size

◆ select_errors

uint select_errors

◆ server_id

◆ server_id_supplied

bool server_id_supplied

◆ server_start_time

time_t server_start_time

◆ server_uuid

char server_uuid[UUID_LENGTH+1]

◆ server_uuid_ptr

const char* server_uuid_ptr

◆ server_version

◆ sha256_password_proxy_users

bool sha256_password_proxy_users

◆ show_comp_option_name

const char* show_comp_option_name[]

◆ slave_exec_mode_options

ulong slave_exec_mode_options

◆ slave_max_allowed_packet

ulong slave_max_allowed_packet

◆ slave_net_timeout

uint slave_net_timeout

◆ slave_rows_last_search_algorithm_used

uint slave_rows_last_search_algorithm_used

◆ slave_rows_search_algorithms_options

ulonglong slave_rows_search_algorithms_options

◆ slave_trans_retries

ulong slave_trans_retries

◆ slave_type_conversions_options

ulonglong slave_type_conversions_options

◆ slow_launch_time

ulong slow_launch_time

◆ sp_automatic_privileges

bool sp_automatic_privileges

◆ specialflag

ulong specialflag

◆ sql_rand

struct rand_struct sql_rand

used by sql_class.cc:THD::THD()

◆ sql_statement_info

PSI_statement_info sql_statement_info[(uint) SQLCOM_END+1]

Statement instrumentation keys (sql).

The last entry, at [SQLCOM_END], is for parsing errors.

◆ sql_statement_names

LEX_CSTRING sql_statement_names[(uint) SQLCOM_END+1]

◆ stage_after_create

PSI_stage_info stage_after_create

◆ stage_alter_inplace

PSI_stage_info stage_alter_inplace

◆ stage_alter_inplace_commit

PSI_stage_info stage_alter_inplace_commit

◆ stage_alter_inplace_prepare

PSI_stage_info stage_alter_inplace_prepare

◆ stage_changing_master

PSI_stage_info stage_changing_master

◆ stage_checking_master_version

PSI_stage_info stage_checking_master_version

◆ stage_checking_permissions

PSI_stage_info stage_checking_permissions

◆ stage_cleaning_up

PSI_stage_info stage_cleaning_up

◆ stage_closing_tables

PSI_stage_info stage_closing_tables

◆ stage_compressing_gtid_table

PSI_stage_info stage_compressing_gtid_table

◆ stage_connecting_to_master

PSI_stage_info stage_connecting_to_master

◆ stage_converting_heap_to_ondisk

PSI_stage_info stage_converting_heap_to_ondisk

◆ stage_copy_to_tmp_table

PSI_stage_info stage_copy_to_tmp_table

◆ stage_creating_table

PSI_stage_info stage_creating_table

◆ stage_creating_tmp_table

PSI_stage_info stage_creating_tmp_table

◆ stage_deleting_from_main_table

PSI_stage_info stage_deleting_from_main_table

◆ stage_deleting_from_reference_tables

PSI_stage_info stage_deleting_from_reference_tables

◆ stage_discard_or_import_tablespace

PSI_stage_info stage_discard_or_import_tablespace

◆ stage_end

PSI_stage_info stage_end

◆ stage_executing

PSI_stage_info stage_executing

◆ stage_execution_of_init_command

PSI_stage_info stage_execution_of_init_command

◆ stage_explaining

PSI_stage_info stage_explaining

◆ stage_finished_reading_one_binlog_switching_to_next_binlog

PSI_stage_info stage_finished_reading_one_binlog_switching_to_next_binlog

◆ stage_flushing_relay_log_and_master_info_repository

PSI_stage_info stage_flushing_relay_log_and_master_info_repository

◆ stage_flushing_relay_log_info_file

PSI_stage_info stage_flushing_relay_log_info_file

◆ stage_freeing_items

PSI_stage_info stage_freeing_items

◆ stage_fulltext_initialization

PSI_stage_info stage_fulltext_initialization

◆ stage_hook_begin_trans

PSI_stage_info stage_hook_begin_trans

◆ stage_init

PSI_stage_info stage_init

◆ stage_killing_slave

PSI_stage_info stage_killing_slave

◆ stage_logging_slow_query

PSI_stage_info stage_logging_slow_query

◆ stage_making_temp_file_append_before_load_data

PSI_stage_info stage_making_temp_file_append_before_load_data

◆ stage_manage_keys

PSI_stage_info stage_manage_keys

◆ stage_master_has_sent_all_binlog_to_slave

PSI_stage_info stage_master_has_sent_all_binlog_to_slave

◆ stage_opening_tables

PSI_stage_info stage_opening_tables

◆ stage_optimizing

PSI_stage_info stage_optimizing

◆ stage_preparing

PSI_stage_info stage_preparing

◆ stage_purging_old_relay_logs

PSI_stage_info stage_purging_old_relay_logs

◆ stage_query_end

PSI_stage_info stage_query_end

◆ stage_queueing_master_event_to_the_relay_log

PSI_stage_info stage_queueing_master_event_to_the_relay_log

◆ stage_reading_event_from_the_relay_log

PSI_stage_info stage_reading_event_from_the_relay_log

◆ stage_registering_slave_on_master

PSI_stage_info stage_registering_slave_on_master

◆ stage_removing_tmp_table

PSI_stage_info stage_removing_tmp_table

◆ stage_rename

PSI_stage_info stage_rename

◆ stage_rename_result_table

PSI_stage_info stage_rename_result_table

◆ stage_requesting_binlog_dump

PSI_stage_info stage_requesting_binlog_dump

◆ stage_rpl_apply_row_evt_delete

PSI_stage_info stage_rpl_apply_row_evt_delete

◆ stage_rpl_apply_row_evt_update

PSI_stage_info stage_rpl_apply_row_evt_update

◆ stage_rpl_apply_row_evt_write

PSI_stage_info stage_rpl_apply_row_evt_write

◆ stage_searching_rows_for_update

PSI_stage_info stage_searching_rows_for_update

◆ stage_sending_binlog_event_to_slave

PSI_stage_info stage_sending_binlog_event_to_slave

◆ stage_setup

PSI_stage_info stage_setup

◆ stage_slave_has_read_all_relay_log

PSI_stage_info stage_slave_has_read_all_relay_log

◆ stage_slave_waiting_event_from_coordinator

PSI_stage_info stage_slave_waiting_event_from_coordinator

◆ stage_slave_waiting_for_workers_to_process_queue

PSI_stage_info stage_slave_waiting_for_workers_to_process_queue

◆ stage_slave_waiting_worker_queue

PSI_stage_info stage_slave_waiting_worker_queue

◆ stage_slave_waiting_worker_to_free_events

PSI_stage_info stage_slave_waiting_worker_to_free_events

◆ stage_slave_waiting_worker_to_release_partition

PSI_stage_info stage_slave_waiting_worker_to_release_partition

◆ stage_slave_waiting_workers_to_exit

PSI_stage_info stage_slave_waiting_workers_to_exit

◆ stage_sql_thd_waiting_until_delay

PSI_stage_info stage_sql_thd_waiting_until_delay

◆ stage_starting

PSI_stage_info stage_starting

◆ stage_statistics

PSI_stage_info stage_statistics

◆ stage_suspending

PSI_stage_info stage_suspending

◆ stage_system_lock

PSI_stage_info stage_system_lock

◆ stage_update

PSI_stage_info stage_update

◆ stage_updating

PSI_stage_info stage_updating

◆ stage_updating_main_table

PSI_stage_info stage_updating_main_table

◆ stage_updating_reference_tables

PSI_stage_info stage_updating_reference_tables

◆ stage_user_sleep

PSI_stage_info stage_user_sleep

◆ stage_verifying_table

PSI_stage_info stage_verifying_table

◆ stage_waiting_for_gtid_to_be_committed

PSI_stage_info stage_waiting_for_gtid_to_be_committed

◆ stage_waiting_for_handler_commit

PSI_stage_info stage_waiting_for_handler_commit

◆ stage_waiting_for_master_to_send_event

PSI_stage_info stage_waiting_for_master_to_send_event

◆ stage_waiting_for_master_update

PSI_stage_info stage_waiting_for_master_update

◆ stage_waiting_for_no_channel_reference

PSI_stage_info stage_waiting_for_no_channel_reference

◆ stage_waiting_for_relay_log_space

PSI_stage_info stage_waiting_for_relay_log_space

◆ stage_waiting_for_slave_mutex_on_exit

PSI_stage_info stage_waiting_for_slave_mutex_on_exit

◆ stage_waiting_for_slave_thread_to_start

PSI_stage_info stage_waiting_for_slave_thread_to_start

◆ stage_waiting_for_table_flush

PSI_stage_info stage_waiting_for_table_flush

◆ stage_waiting_for_the_next_event_in_relay_log

PSI_stage_info stage_waiting_for_the_next_event_in_relay_log

◆ stage_waiting_for_the_slave_thread_to_advance_position

PSI_stage_info stage_waiting_for_the_slave_thread_to_advance_position

◆ stage_waiting_to_finalize_termination

PSI_stage_info stage_waiting_to_finalize_termination

◆ stage_worker_waiting_for_commit_parent

PSI_stage_info stage_worker_waiting_for_commit_parent

◆ stage_worker_waiting_for_its_turn_to_commit

PSI_stage_info stage_worker_waiting_for_its_turn_to_commit

◆ status_vars

SHOW_VAR status_vars[]

◆ stmt_info_rpl

PSI_statement_info stmt_info_rpl

Statement instrumentation key for replication.

◆ stored_program_cache_size

ulong stored_program_cache_size

Soft upper limit for number of sp_head objects that can be stored in the sp_cache for one connection.

◆ stored_program_def_size

ulong stored_program_def_size

◆ super_read_only

bool super_read_only

◆ sync_masterinfo_period

uint sync_masterinfo_period

◆ sync_relaylog_period

uint sync_relaylog_period

◆ sync_relayloginfo_period

uint sync_relayloginfo_period

◆ system_time_zone

char system_time_zone[30]

◆ table_alias_charset

MYSQL_PLUGIN_IMPORT CHARSET_INFO* table_alias_charset

◆ table_cache_size

ulong table_cache_size

◆ table_def_size

ulong table_def_size

◆ tablespace_def_size

ulong tablespace_def_size

◆ tc_heuristic_recover

long tc_heuristic_recover

◆ tc_log_max_pages_used

ulong tc_log_max_pages_used

◆ tc_log_page_size

ulong tc_log_page_size

◆ tc_log_page_waits

ulong tc_log_page_waits

◆ temptable_hton

handlerton* temptable_hton

◆ temptable_max_ram

ulonglong temptable_max_ram

◆ temptable_use_mmap

bool temptable_use_mmap

◆ test_flags

uint test_flags

◆ THR_MALLOC

thread_local MEM_ROOT** THR_MALLOC

◆ timestamp_type_names

const char* timestamp_type_names[]

◆ trust_function_creators

bool trust_function_creators

◆ using_udf_functions

bool using_udf_functions

◆ what_to_log

ulong what_to_log