MySQL  8.0.21
Source Code Documentation
server.cc File Reference
#include "sql/dd/impl/upgrade/server.h"
#include "sql/dd/upgrade/server.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#include <vector>
#include "lex_string.h"
#include "my_dbug.h"
#include "mysql/components/services/log_builtins.h"
#include "scripts/mysql_fix_privilege_tables_sql.h"
#include "scripts/sql_commands_system_tables_data_fix.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd_schema.h"
#include "sql/dd/dd_table.h"
#include "sql/dd/dd_tablespace.h"
#include "sql/dd/dd_trigger.h"
#include "sql/dd/impl/bootstrap/bootstrap_ctx.h"
#include "sql/dd/impl/bootstrap/bootstrapper.h"
#include "sql/dd/impl/tables/dd_properties.h"
#include "sql/dd/impl/utils.h"
#include "sql/dd/types/routine.h"
#include "sql/dd/types/table.h"
#include "sql/dd/types/tablespace.h"
#include "sql/dd_sp.h"
#include "sql/sd_notify.h"
#include "sql/sp.h"
#include "sql/sp_head.h"
#include "sql/sql_base.h"
#include "sql/sql_prepare.h"
#include "sql/strfunc.h"
#include "sql/table_trigger_dispatcher.h"
#include "sql/thd_raii.h"
#include "sql/trigger.h"
#include "sql/trigger_def.h"

Namespaces

 dd
 The version of the current data dictionary table definitions.
 
 dd::upgrade
 

Typedefs

typedef ulonglong sql_mode_t
 

Functions

bool dd::upgrade::do_server_upgrade_checks (THD *thd)
 Performs validation on server metadata. More...
 
bool dd::upgrade::invalid_routine (THD *thd, const dd::Schema &schema, const dd::Routine &routine)
 Validate a dd::Routine object. More...
 
bool dd::upgrade::invalid_triggers (THD *thd, const char *schema_name, const dd::Table &table)
 Validate all the triggers of the given table. More...
 
bool dd::upgrade::invalid_sql (THD *thd, const char *dbname, const dd::String_type &sql)
 Validate the SQL string provided. More...
 
bool dd::upgrade::build_event_sp (const THD *thd, const char *name, size_t name_len, const char *body, size_t body_len, dd::String_type *sp_sql)
 Helper function to create a stored procedure from an event body. More...
 
bool dd::upgrade::upgrade_system_schemas (THD *thd)
 Upgrades/restores the system tables to defaults of the current MySQL version. More...
 
bool dd::upgrade::no_server_upgrade_required ()
 
bool dd::upgrade::I_S_upgrade_required ()
 

Variables

const char * mysql_sys_schema []
 
const char * fill_help_tables []
 
const char * upgrade_modes [] = {"NONE", "MINIMAL", "AUTO", "FORCE", NullS}
 
TYPELIB upgrade_mode_typelib
 

Typedef Documentation

◆ sql_mode_t

Variable Documentation

◆ alter_cmds

std::vector<dd::String_type> alter_cmds
private

◆ fill_help_tables

const char* fill_help_tables[]

◆ mysql_sys_schema

const char* mysql_sys_schema[]

◆ needs_repair

bool needs_repair
private

◆ old_value

T old_value
private

◆ repairs

std::vector<dd::String_type> repairs
private

◆ server_opt

T* server_opt
private

◆ upgrade_mode_typelib

TYPELIB upgrade_mode_typelib
Initial value:
upgrade_modes, nullptr}
const char * upgrade_modes[]
Definition: server.cc:67
#define array_elements(A)
Definition: validate_password_imp.cc:45

◆ upgrade_modes

const char* upgrade_modes[] = {"NONE", "MINIMAL", "AUTO", "FORCE", NullS}