组合类型 |
struct | st_net |
struct | st_udf_args |
struct | st_udf_init |
宏定义 |
#define | HOSTNAME_LENGTH 60 |
#define | SYSTEM_CHARSET_MBMAXLEN 4 |
#define | NAME_CHAR_LEN 64 |
#define | USERNAME_CHAR_LENGTH 16 |
#define | NAME_LEN (NAME_CHAR_LEN*SYSTEM_CHARSET_MBMAXLEN) |
#define | USERNAME_LENGTH (USERNAME_CHAR_LENGTH*SYSTEM_CHARSET_MBMAXLEN) |
#define | SERVER_VERSION_LENGTH 60 |
#define | SQLSTATE_LENGTH 5 |
#define | TABLE_COMMENT_INLINE_MAXLEN 180 |
#define | TABLE_COMMENT_MAXLEN 2048 |
#define | COLUMN_COMMENT_MAXLEN 1024 |
#define | INDEX_COMMENT_MAXLEN 1024 |
#define | USER_HOST_BUFF_SIZE HOSTNAME_LENGTH + USERNAME_LENGTH + 2 |
#define | LOCAL_HOST "localhost" |
#define | LOCAL_HOST_NAMEDPIPE "." |
#define | SCRAMBLE_LENGTH 20 |
#define | SCRAMBLE_LENGTH_323 8 |
#define | SCRAMBLED_PASSWORD_CHAR_LENGTH (SCRAMBLE_LENGTH*2+1) |
#define | SCRAMBLED_PASSWORD_CHAR_LENGTH_323 (SCRAMBLE_LENGTH_323*2) |
#define | NOT_NULL_FLAG 1 |
#define | PRI_KEY_FLAG 2 |
#define | UNIQUE_KEY_FLAG 4 |
#define | MULTIPLE_KEY_FLAG 8 |
#define | BLOB_FLAG 16 |
#define | UNSIGNED_FLAG 32 |
#define | ZEROFILL_FLAG 64 |
#define | BINARY_FLAG 128 |
#define | ENUM_FLAG 256 |
#define | AUTO_INCREMENT_FLAG 512 |
#define | TIMESTAMP_FLAG 1024 |
#define | SET_FLAG 2048 |
#define | NO_DEFAULT_VALUE_FLAG 4096 |
#define | ON_UPDATE_NOW_FLAG 8192 |
#define | NUM_FLAG 32768 |
#define | PART_KEY_FLAG 16384 |
#define | GROUP_FLAG 32768 |
#define | UNIQUE_FLAG 65536 |
#define | BINCMP_FLAG 131072 |
#define | GET_FIXED_FIELDS_FLAG (1 << 18) |
#define | FIELD_IN_PART_FUNC_FLAG (1 << 19) |
#define | FIELD_IN_ADD_INDEX (1<< 20) |
#define | FIELD_IS_RENAMED (1<< 21) |
#define | FIELD_STORAGE_FLAGS 22 |
#define | COLUMN_FORMAT_FLAGS 25 |
#define | REFRESH_GRANT 1 |
#define | REFRESH_LOG 2 |
#define | REFRESH_TABLES 4 |
#define | REFRESH_HOSTS 8 |
#define | REFRESH_STATUS 16 |
#define | REFRESH_THREADS 32 |
#define | REFRESH_SLAVE 64 |
#define | REFRESH_MASTER 128 |
#define | REFRESH_READ_LOCK 16384 |
#define | REFRESH_FAST 32768 |
#define | REFRESH_QUERY_CACHE 65536 |
#define | REFRESH_QUERY_CACHE_FREE 0x20000L |
#define | REFRESH_DES_KEY_FILE 0x40000L |
#define | REFRESH_USER_RESOURCES 0x80000L |
#define | REFRESH_BACKUP_LOG 0x200000L |
#define | CLIENT_LONG_PASSWORD 1 |
#define | CLIENT_FOUND_ROWS 2 |
#define | CLIENT_LONG_FLAG 4 |
#define | CLIENT_CONNECT_WITH_DB 8 |
#define | CLIENT_NO_SCHEMA 16 |
#define | CLIENT_COMPRESS 32 |
#define | CLIENT_ODBC 64 |
#define | CLIENT_LOCAL_FILES 128 |
#define | CLIENT_IGNORE_SPACE 256 |
#define | CLIENT_PROTOCOL_41 512 |
#define | CLIENT_INTERACTIVE 1024 |
#define | CLIENT_SSL 2048 |
#define | CLIENT_IGNORE_SIGPIPE 4096 |
#define | CLIENT_TRANSACTIONS 8192 |
#define | CLIENT_RESERVED 16384 |
#define | CLIENT_SECURE_CONNECTION 32768 |
#define | CLIENT_MULTI_STATEMENTS (1UL << 16) |
#define | CLIENT_MULTI_RESULTS (1UL << 17) |
#define | CLIENT_PS_MULTI_RESULTS (1UL << 18) |
#define | CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30) |
#define | CLIENT_REMEMBER_OPTIONS (1UL << 31) |
#define | CLIENT_ALL_FLAGS |
#define | CLIENT_BASIC_FLAGS |
#define | SERVER_STATUS_IN_TRANS 1 |
#define | SERVER_STATUS_AUTOCOMMIT 2 |
#define | SERVER_MORE_RESULTS_EXISTS 8 |
#define | SERVER_QUERY_NO_GOOD_INDEX_USED 16 |
#define | SERVER_QUERY_NO_INDEX_USED 32 |
#define | SERVER_STATUS_CURSOR_EXISTS 64 |
#define | SERVER_STATUS_LAST_ROW_SENT 128 |
#define | SERVER_STATUS_DB_DROPPED 256 |
#define | SERVER_STATUS_NO_BACKSLASH_ESCAPES 512 |
#define | SERVER_STATUS_METADATA_CHANGED 1024 |
#define | SERVER_QUERY_WAS_SLOW 2048 |
#define | SERVER_PS_OUT_PARAMS 4096 |
#define | SERVER_STATUS_CLEAR_SET |
#define | MYSQL_ERRMSG_SIZE 512 |
#define | NET_READ_TIMEOUT 30 |
#define | NET_WRITE_TIMEOUT 60 |
#define | NET_WAIT_TIMEOUT 8*60*60 |
#define | ONLY_KILL_QUERY 1 |
#define | MAX_TINYINT_WIDTH 3 |
#define | MAX_SMALLINT_WIDTH 5 |
#define | MAX_MEDIUMINT_WIDTH 8 |
#define | MAX_INT_WIDTH 10 |
#define | MAX_BIGINT_WIDTH 20 |
#define | MAX_CHAR_WIDTH 255 |
#define | MAX_BLOB_WIDTH 16777216 |
#define | packet_error (~(unsigned long) 0) |
#define | CLIENT_MULTI_QUERIES CLIENT_MULTI_STATEMENTS |
#define | FIELD_TYPE_DECIMAL MYSQL_TYPE_DECIMAL |
#define | FIELD_TYPE_NEWDECIMAL MYSQL_TYPE_NEWDECIMAL |
#define | FIELD_TYPE_TINY MYSQL_TYPE_TINY |
#define | FIELD_TYPE_SHORT MYSQL_TYPE_SHORT |
#define | FIELD_TYPE_LONG MYSQL_TYPE_LONG |
#define | FIELD_TYPE_FLOAT MYSQL_TYPE_FLOAT |
#define | FIELD_TYPE_DOUBLE MYSQL_TYPE_DOUBLE |
#define | FIELD_TYPE_NULL MYSQL_TYPE_NULL |
#define | FIELD_TYPE_TIMESTAMP MYSQL_TYPE_TIMESTAMP |
#define | FIELD_TYPE_LONGLONG MYSQL_TYPE_LONGLONG |
#define | FIELD_TYPE_INT24 MYSQL_TYPE_INT24 |
#define | FIELD_TYPE_DATE MYSQL_TYPE_DATE |
#define | FIELD_TYPE_TIME MYSQL_TYPE_TIME |
#define | FIELD_TYPE_DATETIME MYSQL_TYPE_DATETIME |
#define | FIELD_TYPE_YEAR MYSQL_TYPE_YEAR |
#define | FIELD_TYPE_NEWDATE MYSQL_TYPE_NEWDATE |
#define | FIELD_TYPE_ENUM MYSQL_TYPE_ENUM |
#define | FIELD_TYPE_SET MYSQL_TYPE_SET |
#define | FIELD_TYPE_TINY_BLOB MYSQL_TYPE_TINY_BLOB |
#define | FIELD_TYPE_MEDIUM_BLOB MYSQL_TYPE_MEDIUM_BLOB |
#define | FIELD_TYPE_LONG_BLOB MYSQL_TYPE_LONG_BLOB |
#define | FIELD_TYPE_BLOB MYSQL_TYPE_BLOB |
#define | FIELD_TYPE_VAR_STRING MYSQL_TYPE_VAR_STRING |
#define | FIELD_TYPE_STRING MYSQL_TYPE_STRING |
#define | FIELD_TYPE_CHAR MYSQL_TYPE_TINY |
#define | FIELD_TYPE_INTERVAL MYSQL_TYPE_ENUM |
#define | FIELD_TYPE_GEOMETRY MYSQL_TYPE_GEOMETRY |
#define | FIELD_TYPE_BIT MYSQL_TYPE_BIT |
#define | MYSQL_SHUTDOWN_KILLABLE_CONNECT (unsigned char)(1 << 0) |
#define | MYSQL_SHUTDOWN_KILLABLE_TRANS (unsigned char)(1 << 1) |
#define | MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE (unsigned char)(1 << 2) |
#define | MYSQL_SHUTDOWN_KILLABLE_UPDATE (unsigned char)(1 << 3) |
#define | net_new_transaction(net) ((net)->pkt_nr=0) |
#define | NET_HEADER_SIZE 4 |
#define | COMP_HEADER_SIZE 3 |
#define | NULL_LENGTH ((unsigned long) ~0) |
#define | MYSQL_STMT_HEADER 4 |
#define | MYSQL_LONG_DATA_HEADER 6 |
#define | NOT_FIXED_DEC 31 |
类型定义 |
typedef struct st_vio | Vio |
typedef struct st_net | NET |
typedef struct st_udf_args | UDF_ARGS |
typedef struct st_udf_init | UDF_INIT |
枚举 |
enum | enum_server_command {
COM_SLEEP,
COM_QUIT,
COM_INIT_DB,
COM_QUERY,
COM_FIELD_LIST,
COM_CREATE_DB,
COM_DROP_DB,
COM_REFRESH,
COM_SHUTDOWN,
COM_STATISTICS,
COM_PROCESS_INFO,
COM_CONNECT,
COM_PROCESS_KILL,
COM_DEBUG,
COM_PING,
COM_TIME,
COM_DELAYED_INSERT,
COM_CHANGE_USER,
COM_BINLOG_DUMP,
COM_TABLE_DUMP,
COM_CONNECT_OUT,
COM_REGISTER_SLAVE,
COM_STMT_PREPARE,
COM_STMT_EXECUTE,
COM_STMT_SEND_LONG_DATA,
COM_STMT_CLOSE,
COM_STMT_RESET,
COM_SET_OPTION,
COM_STMT_FETCH,
COM_DAEMON,
COM_END
} |
enum | enum_field_types {
MYSQL_TYPE_DECIMAL,
MYSQL_TYPE_TINY,
MYSQL_TYPE_SHORT,
MYSQL_TYPE_LONG,
MYSQL_TYPE_FLOAT,
MYSQL_TYPE_DOUBLE,
MYSQL_TYPE_NULL,
MYSQL_TYPE_TIMESTAMP,
MYSQL_TYPE_LONGLONG,
MYSQL_TYPE_INT24,
MYSQL_TYPE_DATE,
MYSQL_TYPE_TIME,
MYSQL_TYPE_DATETIME,
MYSQL_TYPE_YEAR,
MYSQL_TYPE_NEWDATE,
MYSQL_TYPE_VARCHAR,
MYSQL_TYPE_BIT,
MYSQL_TYPE_NEWDECIMAL = 246,
MYSQL_TYPE_ENUM = 247,
MYSQL_TYPE_SET = 248,
MYSQL_TYPE_TINY_BLOB = 249,
MYSQL_TYPE_MEDIUM_BLOB = 250,
MYSQL_TYPE_LONG_BLOB = 251,
MYSQL_TYPE_BLOB = 252,
MYSQL_TYPE_VAR_STRING = 253,
MYSQL_TYPE_STRING = 254,
MYSQL_TYPE_GEOMETRY = 255,
MAX_NO_FIELD_TYPES
} |
enum | mysql_enum_shutdown_level {
SHUTDOWN_DEFAULT = 0,
SHUTDOWN_WAIT_CONNECTIONS = MYSQL_SHUTDOWN_KILLABLE_CONNECT,
SHUTDOWN_WAIT_TRANSACTIONS = MYSQL_SHUTDOWN_KILLABLE_TRANS,
SHUTDOWN_WAIT_UPDATES = MYSQL_SHUTDOWN_KILLABLE_UPDATE,
SHUTDOWN_WAIT_ALL_BUFFERS = (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1),
SHUTDOWN_WAIT_CRITICAL_BUFFERS = (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1) + 1,
KILL_CONNECTION = 255
} |
enum | enum_cursor_type { CURSOR_TYPE_NO_CURSOR = 0,
CURSOR_TYPE_READ_ONLY = 1,
CURSOR_TYPE_FOR_UPDATE = 2,
CURSOR_TYPE_SCROLLABLE = 4
} |
enum | enum_mysql_set_option { MYSQL_OPTION_MULTI_STATEMENTS_ON,
MYSQL_OPTION_MULTI_STATEMENTS_OFF
} |
enum | Item_result {
STRING_RESULT = 0,
REAL_RESULT,
INT_RESULT,
ROW_RESULT,
DECIMAL_RESULT
} |
函数 |
my_bool | my_net_init (NET *net, Vio *vio) |
void | my_net_local_init (NET *net) |
void | net_end (NET *net) |
void | net_clear (NET *net, my_bool clear_buffer) |
my_bool | net_realloc (NET *net, size_t length) |
my_bool | net_flush (NET *net) |
my_bool | my_net_write (NET *net, const unsigned char *packet, size_t len) |
my_bool | net_write_command (NET *net, unsigned char command, const unsigned char *header, size_t head_len, const unsigned char *packet, size_t len) |
int | net_real_write (NET *net, const unsigned char *packet, size_t len) |
unsigned long | my_net_read (NET *net) |
int | my_connect (my_socket s, const struct sockaddr *name, unsigned int namelen, unsigned int timeout) |
void | create_random_string (char *to, unsigned int length, struct my_rnd_struct *rand_st) |
void | hash_password (unsigned long *to, const char *password, unsigned int password_len) |
void | make_scrambled_password_323 (char *to, const char *password) |
void | scramble_323 (char *to, const char *message, const char *password) |
my_bool | check_scramble_323 (const char *, const char *message, unsigned long *salt) |
void | get_salt_from_password_323 (unsigned long *res, const char *password) |
void | make_password_from_salt_323 (char *to, const unsigned long *salt) |
void | make_scrambled_password (char *to, const char *password) |
void | scramble (char *to, const char *message, const char *password) |
my_bool | check_scramble (const char *reply, const char *message, const unsigned char *hash_stage2) |
void | get_salt_from_password (unsigned char *res, const char *password) |
void | make_password_from_salt (char *to, const unsigned char *hash_stage2) |
char * | octet2hex (char *to, const char *str, unsigned int len) |
char * | get_tty_password (const char *opt_message) |
const char * | mysql_errno_to_sqlstate (unsigned int mysql_errno) |
my_bool | my_thread_init (void) |
void | my_thread_end (void) |