Poniższe stałe są zdefiniowane w tym rozszerzeniu i stają się dostępne, gdy rozszerzenie jest dokompilowane z PHP, lub załadowane dynamicznie przy starcie.
Most of the constants refer to details of the MySQL Client Server Protocol. Please, refer to the MySQL reference manual to learn about their meaning. To avoid content duplication, only short descriptions are given.
MysqlndUhConnection::simpleCommand() related
The following constants can be used to detect what command is to be send through MysqlndUhConnection::simpleCommand().
MYSQLND_UH_MYSQLND_COM_SLEEP
(integer)
MYSQLND_UH_MYSQLND_COM_QUIT
(integer)
MYSQLND_UH_MYSQLND_COM_INIT_DB
(integer)
MYSQLND_UH_MYSQLND_COM_QUERY
(integer)
MYSQLND_UH_MYSQLND_COM_FIELD_LIST
(integer)
MYSQLND_UH_MYSQLND_COM_CREATE_DB
(integer)
MYSQLND_UH_MYSQLND_COM_DROP_DB
(integer)
MYSQLND_UH_MYSQLND_COM_REFRESH
(integer)
MYSQLND_UH_MYSQLND_COM_SHUTDOWN
(integer)
MYSQLND_UH_MYSQLND_COM_STATISTICS
(integer)
MYSQLND_UH_MYSQLND_COM_PROCESS_INFO
(integer)
MYSQLND_UH_MYSQLND_COM_CONNECT
(integer)
MYSQLND_UH_MYSQLND_COM_PROCESS_KILL
(integer)
MYSQLND_UH_MYSQLND_COM_DEBUG
(integer)
MYSQLND_UH_MYSQLND_COM_PING
(integer)
MYSQLND_UH_MYSQLND_COM_TIME
(integer)
MYSQLND_UH_MYSQLND_COM_DELAYED_INSERT
(integer)
MYSQLND_UH_MYSQLND_COM_CHANGE_USER
(integer)
MYSQLND_UH_MYSQLND_COM_BINLOG_DUMP
(integer)
MYSQLND_UH_MYSQLND_COM_TABLE_DUMP
(integer)
MYSQLND_UH_MYSQLND_COM_CONNECT_OUT
(integer)
MYSQLND_UH_MYSQLND_COM_REGISTER_SLAVED
(integer)
MYSQLND_UH_MYSQLND_COM_STMT_PREPARE
(integer)
MYSQLND_UH_MYSQLND_COM_STMT_EXECUTE
(integer)
MYSQLND_UH_MYSQLND_COM_STMT_SEND_LONG_DATA
(integer)
MYSQLND_UH_MYSQLND_COM_STMT_CLOSE
(integer)
MYSQLND_UH_MYSQLND_COM_STMT_RESET
(integer)
MYSQLND_UH_MYSQLND_COM_SET_OPTION
(integer)
MYSQLND_UH_MYSQLND_COM_STMT_FETCH
(integer)
MYSQLND_UH_MYSQLND_COM_DAEMON
(integer)
MYSQLND_UH_MYSQLND_COM_END
(integer)
The following constants can be used to analyze the ok_packet argument of MysqlndUhConnection::simpleCommand().
MYSQLND_UH_MYSQLND_PROT_GREET_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_AUTH_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_OK_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_EOF_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_CMD_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_RSET_HEADER_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_RSET_FLD_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_ROW_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_STATS_PACKET
(integer)
MYSQLND_UH_MYSQLND_PREPARE_RESP_PACKET
(integer)
MYSQLND_UH_MYSQLND_CHG_USER_RESP_PACKET
(integer)
MYSQLND_UH_MYSQLND_PROT_LAST
(integer)
MysqlndUhConnection::close() related
The following constants can be used to detect why a connection has been closed through MysqlndUhConnection::close().
MYSQLND_UH_MYSQLND_CLOSE_EXPLICIT
(integer)
MYSQLND_UH_MYSQLND_CLOSE_IMPLICIT
(integer)
MYSQLND_UH_MYSQLND_CLOSE_DISCONNECTED
(integer)
MYSQLND_UH_MYSQLND_CLOSE_LAST
(integer)
MysqlndUhConnection::setServerOption() related
The following constants can be used to detect which option is set through MysqlndUhConnection::setServerOption().
MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_ON
(integer)
MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_OFF
(integer)
MysqlndUhConnection::setClientOption() related
The following constants can be used to detect which option is set through MysqlndUhConnection::setClientOption().
MYSQLND_UH_MYSQLND_OPTION_OPT_CONNECT_TIMEOUT
(integer)
MYSQLND_UH_MYSQLND_OPTION_OPT_COMPRESS
(integer)
MYSQLND_UH_MYSQLND_OPTION_OPT_NAMED_PIPE
(integer)
MYSQLND_UH_MYSQLND_OPTION_INIT_COMMAND
(integer)
MYSQLND_UH_MYSQLND_READ_DEFAULT_FILE
(integer)
MYSQLND_UH_MYSQLND_READ_DEFAULT_GROUP
(integer)
MYSQLND_UH_MYSQLND_SET_CHARSET_DIR
(integer)
MYSQLND_UH_MYSQLND_SET_CHARSET_NAME
(integer)
MYSQLND_UH_MYSQLND_OPT_LOCAL_INFILE
(integer)
MYSQLND_UH_MYSQLND_OPT_PROTOCOL
(integer)
MYSQLND_UH_MYSQLND_OPT_READ_TIMEOUT
(integer)
MYSQLND_UH_MYSQLND_OPT_WRITE_TIMEOUT
(integer)
MYSQLND_UH_MYSQLND_OPT_USE_RESULT
(integer)
MYSQLND_UH_MYSQLND_OPT_USE_REMOTE_CONNECTION
(integer)
MYSQLND_UH_MYSQLND_OPT_USE_EMBEDDED_CONNECTION
(integer)
MYSQLND_UH_MYSQLND_OPT_GUESS_CONNECTION
(integer)
MYSQLND_UH_MYSQLND_SET_CLIENT_IP
(integer)
MYSQLND_UH_MYSQLND_SECURE_AUTH
(integer)
MYSQLND_UH_MYSQLND_REPORT_DATA_TRUNCATION
(integer)
MYSQLND_UH_MYSQLND_OPT_RECONNECT
(integer)
MYSQLND_UH_MYSQLND_OPT_SSL_VERIFY_SERVER_CERT
(integer)
MYSQLND_UH_MYSQLND_OPT_NET_CMD_BUFFER_SIZE
(integer)
MYSQLND_UH_MYSQLND_OPT_NET_READ_BUFFER_SIZE
(integer)
MYSQLND_UH_MYSQLND_OPT_SSL_KEY
(integer)
MYSQLND_UH_MYSQLND_OPT_SSL_CERT
(integer)
MYSQLND_UH_MYSQLND_OPT_SSL_CA
(integer)
MYSQLND_UH_MYSQLND_OPT_SSL_CAPATH
(integer)
MYSQLND_UH_MYSQLND_OPT_SSL_CIPHER
(integer)
MYSQLND_UH_MYSQLND_OPT_SSL_PASSPHRASE
(integer)
MYSQLND_UH_SERVER_OPTION_PLUGIN_DIR
(integer)
MYSQLND_UH_SERVER_OPTION_DEFAULT_AUTH
(integer)
MYSQLND_UH_SERVER_OPTION_SET_CLIENT_IP
(integer)
MYSQLND_UH_MYSQLND_OPT_MAX_ALLOWED_PACKET
(integer)
MYSQLND_UH_MYSQLND_OPT_AUTH_PROTOCOL
(integer)
MYSQLND_UH_MYSQLND_OPT_INT_AND_FLOAT_NATIVE
(integer)
Other
The plugins version number can be obtained using
MYSQLND_UH_VERSION
or
MYSQLND_UH_VERSION_ID
.
MYSQLND_UH_VERSION
is the string representation of the numerical version number
MYSQLND_UH_VERSION_ID
, which is an integer such as 10000.
Developers can calculate the version number as follows.
Version (part) | Example |
---|---|
Major*10000 | 1*10000 = 10000 |
Minor*100 | 0*100 = 0 |
Patch | 0 = 0 |
MYSQLND_UH_VERSION_ID |
10000 |