MySQL  8.0.17
Source Code Documentation
mysqlcheck.cc File Reference
#include "client/check/mysqlcheck.h"
#include <mysql_version.h>
#include <mysqld_error.h>
#include <stdlib.h>
#include "caching_sha2_passwordopt-vars.h"
#include "client/client_priv.h"
#include "m_ctype.h"
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_default.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "mysql/service_mysql_alloc.h"
#include "print_version.h"
#include "sslopt-vars.h"
#include "typelib.h"
#include "welcome_copyright_notice.h"
#include "caching_sha2_passwordopt-longopts.h"
#include "sslopt-longopts.h"
#include "sslopt-case.h"

Macros

#define EX_USAGE   1
 
#define EX_MYSQLERR   2
 

Functions

static void usage (void)
 
static int get_options (int *argc, char ***argv, MEM_ROOT *alloc)
 
static int dbConnect (char *host, char *user, char *passwd)
 
static void dbDisconnect (char *host)
 
static void DBerror (MYSQL *mysql, string when)
 
static void safe_exit (int error)
 
int main (int argc, char **argv)
 

Variables

static MYSQL mysql_connection
 
static MYSQLsock = 0
 
static bool opt_alldbs = 0
 
static bool opt_check_only_changed = 0
 
static bool opt_extended = 0
 
static bool opt_compress = 0
 
static bool opt_databases = 0
 
static bool opt_fast = 0
 
static bool opt_medium_check = 0
 
static bool opt_quick = 0
 
static bool opt_all_in_1 = 0
 
static bool opt_silent = 0
 
static bool opt_auto_repair = 0
 
static bool ignore_errors = 0
 
static bool tty_password = 0
 
static bool opt_frm = 0
 
static bool debug_info_flag = 0
 
static bool debug_check_flag = 0
 
static bool opt_fix_table_names = 0
 
static bool opt_fix_db_names = 0
 
static bool opt_upgrade = 0
 
static bool opt_write_binlog = 1
 
static uint verbose = 0
 
static uint opt_mysql_port = 0
 
static uint opt_enable_cleartext_plugin = 0
 
static bool using_opt_enable_cleartext_plugin = 0
 
static int my_end_arg
 
static char * opt_mysql_unix_port = 0
 
static char * opt_password = 0
 
static char * current_user = 0
 
static char * current_host = 0
 
static const char * default_charset = nullptr
 
static char * opt_plugin_dir = 0
 
static char * opt_default_auth = 0
 
static int first_error = 0
 
static const char * opt_skip_database = ""
 
static uint opt_protocol = 0
 
static char * opt_bind_addr = NULL
 
static struct my_option my_long_options []
 
static const char * load_default_groups [] = {"mysqlcheck", "client", 0}
 
static int what_to_do = 0
 

Macro Definition Documentation

◆ EX_MYSQLERR

#define EX_MYSQLERR   2

◆ EX_USAGE

#define EX_USAGE   1

Function Documentation

◆ dbConnect()

static int dbConnect ( char *  host,
char *  user,
char *  passwd 
)
static

◆ dbDisconnect()

static void dbDisconnect ( char *  host)
static

◆ DBerror()

static void DBerror ( MYSQL mysql,
string  when 
)
static

◆ get_options()

static int get_options ( int *  argc,
char ***  argv,
MEM_ROOT alloc 
)
static

◆ main()

int main ( int  argc,
char **  argv 
)

◆ safe_exit()

static void safe_exit ( int  error)
static

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ current_host

char * current_host = 0
static

◆ current_user

char * current_user = 0
static

◆ debug_check_flag

bool debug_check_flag = 0
static

◆ debug_info_flag

bool debug_info_flag = 0
static

◆ default_charset

const char* default_charset = nullptr
static

◆ first_error

int first_error = 0
static

◆ ignore_errors

bool ignore_errors = 0
static

◆ load_default_groups

const char* load_default_groups[] = {"mysqlcheck", "client", 0}
static

◆ my_end_arg

int my_end_arg
static

◆ my_long_options

struct my_option my_long_options[]
static

◆ mysql_connection

MYSQL mysql_connection
static

◆ opt_all_in_1

bool opt_all_in_1 = 0
static

◆ opt_alldbs

bool opt_alldbs = 0
static

◆ opt_auto_repair

bool opt_auto_repair = 0
static

◆ opt_bind_addr

char* opt_bind_addr = NULL
static

◆ opt_check_only_changed

bool opt_check_only_changed = 0
static

◆ opt_compress

bool opt_compress = 0
static

◆ opt_databases

bool opt_databases = 0
static

◆ opt_default_auth

char * opt_default_auth = 0
static

◆ opt_enable_cleartext_plugin

uint opt_enable_cleartext_plugin = 0
static

◆ opt_extended

bool opt_extended = 0
static

◆ opt_fast

bool opt_fast = 0
static

◆ opt_fix_db_names

bool opt_fix_db_names = 0
static

◆ opt_fix_table_names

bool opt_fix_table_names = 0
static

◆ opt_frm

bool opt_frm = 0
static

◆ opt_medium_check

bool opt_medium_check = 0
static

◆ opt_mysql_port

uint opt_mysql_port = 0
static

◆ opt_mysql_unix_port

char* opt_mysql_unix_port = 0
static

◆ opt_password

char* opt_password = 0
static

◆ opt_plugin_dir

char* opt_plugin_dir = 0
static

◆ opt_protocol

uint opt_protocol = 0
static

◆ opt_quick

bool opt_quick = 0
static

◆ opt_silent

bool opt_silent = 0
static

◆ opt_skip_database

const char* opt_skip_database = ""
static

◆ opt_upgrade

bool opt_upgrade = 0
static

◆ opt_write_binlog

bool opt_write_binlog = 1
static

◆ sock

MYSQL * sock = 0
static

◆ tty_password

bool tty_password = 0
static

◆ using_opt_enable_cleartext_plugin

bool using_opt_enable_cleartext_plugin = 0
static

◆ verbose

uint verbose = 0
static

◆ what_to_do

int what_to_do = 0
static