MySQL 9.1.0
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/include/client_priv.h"
#include "m_string.h"
#include "my_default.h"
#include "my_inttypes.h"
#include "mysql/strings/m_ctype.h"
Namespaces | |
namespace | Mysql |
namespace | Mysql::Tools |
namespace | Mysql::Tools::Check |
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 () |
void | Mysql::Tools::Check::mysql_check (MYSQL *connection, int what_to_do, bool opt_alldbs, bool opt_check_only_changed, bool opt_extended, bool opt_databases, bool opt_fast, bool opt_medium_check, bool opt_quick, bool opt_all_in_1, bool opt_silent, bool opt_auto_repair, bool ignore_errors, bool opt_frm, bool opt_fix_table_names, bool opt_fix_db_names, bool opt_upgrade, bool opt_write_binlog, uint verbose, std::string opt_skip_database, std::vector< std::string > arguments, void(*dberror)(MYSQL *mysql, const std::string &when)) |
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 |