MySQL 9.1.0
Source Code Documentation
mysqlshow.cc File Reference
#include <mysql.h>
#include <mysqld_error.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include "client/include/caching_sha2_passwordopt-vars.h"
#include "client/include/client_priv.h"
#include "client/include/sslopt-vars.h"
#include "compression.h"
#include "m_string.h"
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_default.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "my_sys.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/strings/m_ctype.h"
#include "nulls.h"
#include "print_version.h"
#include "strxnmov.h"
#include "typelib.h"
#include "welcome_copyright_notice.h"
#include "client/include/multi_factor_passwordopt-vars.h"
#include "client/include/multi_factor_passwordopt-longopts.h"
#include "client/include/caching_sha2_passwordopt-longopts.h"
#include "client/include/sslopt-longopts.h"
#include "client/include/sslopt-case.h"

Functions

static void get_options (int *argc, char ***argv)
 
static int list_dbs (MYSQL *mysql, const char *wild)
 
static int list_tables (MYSQL *mysql, const char *db, const char *table)
 
static int list_table_status (MYSQL *mysql, const char *db, const char *table)
 
static int list_fields (MYSQL *mysql, const char *db, const char *table, const char *field)
 
static void print_header (const char *header, size_t head_length,...)
 
static void print_row (const char *header, size_t head_length,...)
 
static void print_trailer (size_t length,...)
 
static void print_res_header (MYSQL_RES *result)
 
static void print_res_top (MYSQL_RES *result)
 
static void print_res_row (MYSQL_RES *result, MYSQL_ROW cur)
 
int main (int argc, char **argv)
 
static void usage (void)
 
static bool get_one_option (int optid, const struct my_option *opt, char *argument)
 

Variables

static char * host = nullptr
 
static char * user = nullptr
 
static bool opt_show_keys = false
 
static bool opt_compress = false
 
static bool opt_count = false
 
static bool opt_status = false
 
static bool opt_table_type = false
 
static bool debug_info_flag = false
 
static bool debug_check_flag = false
 
static uint my_end_arg = 0
 
static uint opt_verbose = 0
 
static const char * default_charset = MYSQL_AUTODETECT_CHARSET_NAME
 
static char * opt_plugin_dir = nullptr
 
static char * opt_default_auth = nullptr
 
static uint opt_enable_cleartext_plugin = 0
 
static bool using_opt_enable_cleartext_plugin = false
 
static uint opt_zstd_compress_level = default_zstd_compression_level
 
static char * opt_compress_algorithm = nullptr
 
static uint opt_protocol = 0
 
static char * opt_bind_addr = nullptr
 
static uint opt_mysql_port = 0
 
static const char * load_default_groups [] = {"mysqlshow", "client", nullptr}
 
static char * opt_mysql_unix_port = nullptr
 
static struct my_option my_long_options []
 

Function Documentation

◆ get_one_option()

static bool get_one_option ( int  optid,
const struct my_option opt,
char *  argument 
)
static

◆ get_options()

static void get_options ( int *  argc,
char ***  argv 
)
static

◆ list_dbs()

static int list_dbs ( MYSQL mysql,
const char *  wild 
)
static

◆ list_fields()

static int list_fields ( MYSQL mysql,
const char *  db,
const char *  table,
const char *  field 
)
static

◆ list_table_status()

static int list_table_status ( MYSQL mysql,
const char *  db,
const char *  table 
)
static

◆ list_tables()

static int list_tables ( MYSQL mysql,
const char *  db,
const char *  table 
)
static

◆ main()

int main ( int  argc,
char **  argv 
)

◆ print_header()

static void print_header ( const char *  header,
size_t  head_length,
  ... 
)
static

◆ print_res_header()

static void print_res_header ( MYSQL_RES result)
static

◆ print_res_row()

static void print_res_row ( MYSQL_RES result,
MYSQL_ROW  cur 
)
static

◆ print_res_top()

static void print_res_top ( MYSQL_RES result)
static

◆ print_row()

static void print_row ( const char *  header,
size_t  head_length,
  ... 
)
static

◆ print_trailer()

static void print_trailer ( size_t  length,
  ... 
)
static

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ debug_check_flag

bool debug_check_flag = false
static

◆ debug_info_flag

bool debug_info_flag = false
static

◆ default_charset

const char* default_charset = MYSQL_AUTODETECT_CHARSET_NAME
static

◆ host

char* host = nullptr
static

◆ load_default_groups

const char* load_default_groups[] = {"mysqlshow", "client", nullptr}
static

◆ my_end_arg

uint my_end_arg = 0
static

◆ my_long_options

struct my_option my_long_options[]
static

◆ opt_bind_addr

char* opt_bind_addr = nullptr
static

◆ opt_compress

bool opt_compress = false
static

◆ opt_compress_algorithm

char* opt_compress_algorithm = nullptr
static

◆ opt_count

bool opt_count = false
static

◆ opt_default_auth

char * opt_default_auth = nullptr
static

◆ opt_enable_cleartext_plugin

uint opt_enable_cleartext_plugin = 0
static

◆ opt_mysql_port

uint opt_mysql_port = 0
static

◆ opt_mysql_unix_port

char* opt_mysql_unix_port = nullptr
static

◆ opt_plugin_dir

char* opt_plugin_dir = nullptr
static

◆ opt_protocol

uint opt_protocol = 0
static

◆ opt_show_keys

bool opt_show_keys = false
static

◆ opt_status

bool opt_status = false
static

◆ opt_table_type

bool opt_table_type = false
static

◆ opt_verbose

uint opt_verbose = 0
static

◆ opt_zstd_compress_level

uint opt_zstd_compress_level = default_zstd_compression_level
static

◆ user

char * user = nullptr
static

◆ using_opt_enable_cleartext_plugin

bool using_opt_enable_cleartext_plugin = false
static