MySQL 8.0.40
Source Code Documentation
|
#include <mysql_version.h>
#include <mysqld_error.h>
#include <sys/types.h>
#include <string>
#include <vector>
#include "client/check/mysqlcheck.h"
#include "client/client_priv.h"
#include "m_ctype.h"
#include "my_default.h"
#include "my_inttypes.h"
Macros | |
#define | MAX_ALTER_STR_SIZE 128 * 1024 |
#define | KEY_PARTITIONING_CHANGED_STR "KEY () partitioning changed" |
Functions | |
static int | process_all_databases () |
static int | process_databases (const vector< string > &db_names) |
static int | process_selected_tables (const string &db, const vector< string > &table_names) |
static int | process_all_tables_in_db (const string &database) |
static int | process_one_db (const string &database) |
static int | use_db (const string &database) |
static int | handle_request_for_tables (const string &tables) |
static void | print_result () |
static string | escape_table_name (const string &src) |
static void | escape_str (const string &src, size_t start, size_t end, string &res) |
static string | escape_db_table_name (const string &src, size_t dot_pos) |
static int | run_query (const string &query) |
static int | rebuild_table (const string &name) |
static int | disable_binlog () |
Variables | |
static MYSQL * | sock = nullptr |
static bool | opt_alldbs = false |
static bool | opt_check_only_changed = false |
static bool | opt_extended = false |
static bool | opt_databases = false |
static bool | opt_fast = false |
static bool | opt_medium_check = false |
static bool | opt_quick = false |
static bool | opt_all_in_1 = false |
static bool | opt_silent = false |
static bool | opt_auto_repair = false |
static bool | ignore_errors = false |
static bool | opt_frm = false |
static bool | opt_fix_table_names = false |
static bool | opt_fix_db_names = false |
static bool | opt_upgrade = false |
static bool | opt_write_binlog = true |
static uint | verbose = 0 |
static string | opt_skip_database |
int | what_to_do = 0 |
void(* | DBError )(MYSQL *mysql, const string &when) |
static int | first_error = 0 |
vector< string > | tables4repair |
vector< string > | tables4rebuild |
vector< string > | alter_table_cmds |
#define KEY_PARTITIONING_CHANGED_STR "KEY () partitioning changed" |
#define MAX_ALTER_STR_SIZE 128 * 1024 |
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
vector<string> alter_table_cmds |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
vector<string> tables4rebuild |
vector<string> tables4repair |
|
static |
int what_to_do = 0 |