客户端连接参数

参数名称描述是否符合预期验证版本
--auto-rehashEnable automatic rehashing
--auto-vertical-outputEnable automatic vertical result set display
--batchDo not use history file
--binary-as-hexDisplay binary values in hexadecimal notation
--binary-modeDisable \r\n - to - \n translation and treatment of \0 as end-of-query
--bind-addressUse specified network interface to connect to MySQL Server
--character-sets-dirDirectory where character sets are installed
--column-namesWrite column names in results
--column-type-infoDisplay result set metadata
--commentsWhether to retain or strip comments in statements sent to the server
--compressCompress all information sent between client and server
--connect-expired-passwordIndicate to server that client can handle expired-password sandbox mode
--connect-timeoutNumber of seconds before connection timeout
--databaseThe database to use
--debugWrite debugging log; supported only if MySQL was built with debugging support
--debug-checkPrint debugging information when program exits
--debug-infoPrint debugging information, memory, and CPU statistics when program exits
--default-authAuthentication plugin to use
--default-character-setSpecify default character set
--defaults-extra-fileRead named option file in addition to usual option files
--defaults-fileRead only named option file
--defaults-group-suffixOption group suffix value
--delimiterSet the statement delimiter
--enable-cleartext-pluginEnable cleartext authentication plugin
--executeExecute the statement and quit
--forceContinue even if an SQL error occurs
--get-server-public-keyRequest RSA public key from server
--helpDisplay help message and exit
--histignorePatterns specifying which statements to ignore for logging
--hostHost on which MySQL server is located
--htmlProduce HTML output
--ignore-spacesIgnore spaces after function names
--init-commandSQL statement to execute after connecting
--line-numbersWrite line numbers for errors
--local-infileEnable or disable for LOCAL capability for LOAD DATA
--login-pathRead login path options from .mylogin.cnf
--max-allowed-packetMaximum packet length to send to or receive from server
--max-join-sizeThe automatic limit for rows in a join when using --safe-updates
--named-commandsEnable named mysql commands
--net-buffer-lengthBuffer size for TCP/IP and socket communication
--no-auto-rehashDisable automatic rehashing
--no-beepDo not beep when errors occur
--no-defaultsRead no option files
--one-databaseIgnore statements except those for the default database named on the command line
--pagerUse the given command for paging query output
--passwordPassword to use when connecting to server
--pipeConnect to server using named pipe (Windows only)
--plugin-dirDirectory where plugins are installed
--portTCP/IP port number for connection
--print-defaultsPrint default options
--promptSet the prompt to the specified format
--protocolTransport protocol to use
--quickDo not cache each query result
--rawWrite column values without escape conversion
--reconnectIf the connection to the server is lost, automatically try to reconnect
--safe-updates, --i-am-a-dummyAllow only UPDATE and DELETE statements that specify key values
--secure-authDo not send passwords to server in old (pre-4.1) format
--select-limitThe automatic limit for SELECT statements when using --safe-updates
--server-public-key-pathPath name to file containing RSA public key
--shared-memory-base-nameShared-memory name for shared-memory connections (Windows only)
--show-warningsShow warnings after each statement if there are any
--sigint-ignoreIgnore SIGINT signals (typically the result of typing Control+C)
--silentSilent mode
--skip-auto-rehashDisable automatic rehashing
--skip-column-namesDo not write column names in results
--skip-line-numbersSkip line numbers for errors
--skip-named-commandsDisable named mysql commands
--skip-pagerDisable paging
--skip-reconnectDisable reconnecting
--socketUnix socket file or Windows named pipe to use
--sslEnable connection encryption
--ssl-caFile that contains list of trusted SSL Certificate Authorities
--ssl-capathDirectory that contains trusted SSL Certificate Authority certificate files
--ssl-certFile that contains X.509 certificate
--ssl-cipherPermissible ciphers for connection encryption
--ssl-crlFile that contains certificate revocation lists
--ssl-crlpathDirectory that contains certificate revocation-list files
--ssl-keyFile that contains X.509 key
--ssl-modeDesired security state of connection to server
--ssl-verify-server-certVerify host name against server certificate Common Name identity
--syslogLog interactive statements to syslog
--tableDisplay output in tabular format
--teeAppend a copy of output to named file
--tls-versionPermissible TLS protocols for encrypted connections
--unbufferedFlush the buffer after each query
--userMySQL user name to use when connecting to server
--verboseVerbose mode
--versionDisplay version information and exit
--verticalPrint query output rows vertically (one line per column value)
--waitIf the connection cannot be established, wait and retry instead of aborting
--xmlProduce XML output
下载 PDF
产品
TiDB
TiDB Cloud
© 2024 PingCAP. All Rights Reserved.
Privacy Policy.