20 #include <my_global.h>
25 #include <my_getopt.h>
29 # define WEXITSTATUS(stat_val) (stat_val)
31 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
37 OPT_CHARSETS_DIR=256, OPT_DEFAULT_CHARSET,
39 OPT_LOW_PRIORITY, OPT_AUTO_REPAIR, OPT_COMPRESS,
40 OPT_DROP, OPT_LOCKS, OPT_KEYWORDS, OPT_DELAYED, OPT_OPTIMIZE,
41 OPT_FTB, OPT_LTB, OPT_ENC, OPT_O_ENC, OPT_ESC, OPT_TABLES,
42 OPT_MASTER_DATA, OPT_AUTOCOMMIT, OPT_AUTO_REHASH,
43 OPT_LINE_NUMBERS, OPT_COLUMN_NAMES, OPT_CONNECT_TIMEOUT,
44 OPT_MAX_ALLOWED_PACKET, OPT_NET_BUFFER_LENGTH,
45 OPT_SELECT_LIMIT, OPT_MAX_JOIN_SIZE, OPT_SSL_SSL,
46 OPT_SSL_KEY, OPT_SSL_CERT, OPT_SSL_CA, OPT_SSL_CAPATH,
47 OPT_SSL_CIPHER, OPT_SHUTDOWN_TIMEOUT, OPT_LOCAL_INFILE,
48 OPT_DELETE_MASTER_LOGS, OPT_COMPACT,
49 OPT_PROMPT, OPT_IGN_LINES,OPT_TRANSACTION,OPT_MYSQL_PROTOCOL,
50 OPT_SHARED_MEMORY_BASE_NAME, OPT_FRM, OPT_SKIP_OPTIMIZATION,
51 OPT_COMPATIBLE, OPT_RECONNECT, OPT_DELIMITER, OPT_SECURE_AUTH,
52 OPT_OPEN_FILES_LIMIT, OPT_SET_CHARSET, OPT_SET_GTID_PURGED, OPT_SERVER_ARG,
53 OPT_STOP_POSITION, OPT_START_DATETIME, OPT_STOP_DATETIME,
54 OPT_SIGINT_IGNORE, OPT_HEXBLOB, OPT_ORDER_BY_PRIMARY, OPT_COUNT,
57 OPT_MYSQL_LOCK_DIRECTORY,
59 OPT_IMPORT_USE_THREADS,
60 OPT_MYSQL_NUMBER_OF_QUERY,
61 OPT_IGNORE_TABLE,OPT_INSERT_IGNORE,OPT_SHOW_WARNINGS,OPT_DROP_DATABASE,
62 OPT_TZ_UTC, OPT_CREATE_SLAP_SCHEMA,
63 OPT_MYSQLDUMP_SLAVE_APPLY,
64 OPT_MYSQLDUMP_SLAVE_DATA,
65 OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT,
66 OPT_SLAP_CSV, OPT_SLAP_CREATE_STRING,
67 OPT_SLAP_AUTO_GENERATE_SQL_LOAD_TYPE, OPT_SLAP_AUTO_GENERATE_WRITE_NUM,
68 OPT_SLAP_AUTO_GENERATE_ADD_AUTO,
69 OPT_SLAP_AUTO_GENERATE_GUID_PRIMARY,
70 OPT_SLAP_AUTO_GENERATE_EXECUTE_QUERIES,
71 OPT_SLAP_AUTO_GENERATE_SECONDARY_INDEXES,
72 OPT_SLAP_AUTO_GENERATE_UNIQUE_WRITE_NUM,
73 OPT_SLAP_AUTO_GENERATE_UNIQUE_QUERY_NUM,
81 OPT_MYSQL_REPLACE_INTO, OPT_BASE64_OUTPUT_MODE, OPT_SERVER_ID,
82 OPT_FIX_TABLE_NAMES, OPT_FIX_DB_NAMES, OPT_SSL_VERIFY_SERVER_CERT,
83 OPT_AUTO_VERTICAL_OUTPUT,
84 OPT_DEBUG_INFO, OPT_DEBUG_CHECK, OPT_COLUMN_TYPES, OPT_ERROR_LOG_FILE,
85 OPT_WRITE_BINLOG, OPT_DUMP_DATE,
90 OPT_RAW_OUTPUT, OPT_WAIT_SERVER_ID, OPT_STOP_NEVER,
91 OPT_BINLOG_ROWS_EVENT_MAX_SIZE,
94 OPT_SSL_CRL, OPT_SSL_CRLPATH,
95 OPT_MYSQLBINLOG_SKIP_GTIDS,
96 OPT_MYSQLBINLOG_INCLUDE_GTIDS,
97 OPT_MYSQLBINLOG_EXCLUDE_GTIDS,
100 OPT_SERVER_PUBLIC_KEY,
101 OPT_ENABLE_CLEARTEXT_PLUGIN,
102 OPT_MAX_CLIENT_OPTION
108 #define FIRST_INFORMATION_SCHEMA_VERSION 50003
113 #define INFORMATION_SCHEMA_DB_NAME "information_schema"
118 #define FIRST_PERFORMANCE_SCHEMA_VERSION 50503
123 #define PERFORMANCE_SCHEMA_DB_NAME "performance_schema"