mysql出現幫助 mysql獲取幫助

2021-10-22 06:25:09 字數 2076 閱讀 2749

檢視配置引數:

show variables like '%timeout%'

2)mysql客戶端工具自帶的幫助

?     (\?) synonym for `help'.

clear   (\c) clear the current input statement.               --清除當前輸入的語句

connect  (\r) reconnect to the server. optional arguments are db and host.  --重新連線,通常用於被剔除或異常斷開後重新連線,

delimiter (\d) set statement delimiter.                    --設定命令終止符,預設為;,比如我們可以設定為/來表示語句結束

edit   (\e) edit command with $editor.                   --編輯緩衝區的上一條sql語句到檔案,預設呼叫vi,檔案會放在/tmp路徑下

ego    (\g) send command to mysql server, display result vertically.    --控制結果顯示為垂直顯示

exit   (\q) exit mysql. same as quit.                   --退出mysql

go    (\g) send command to mysql server.                 --傳送命令到mysql服務

help   (\h) display this help.

nopager  (\n) disable pager, print to stdout.                --關閉頁設定,列印到標準輸出

notee   (\t) don't write into outfile.                   --關閉輸出到檔案

pager   (\p) set pager [to_pager]. print the query results via pager.    --設定pager方式,可以設定為呼叫more,less等等,主要是用於分頁顯示

print   (\p) print current command.

prompt  (\r) change your mysql prompt.                   --改變mysql的提示符

quit   (\q) quit mysql.

rehash  (\#) rebuild completion hash.                    --自動補齊相關物件名字

source  (\.) execute an sql script file. takes a file name as an argument. --執行指令碼檔案

status  (\s) get status information from the server.            --獲得狀態資訊

system  (\!) execute a system shell command.                --執行系統命令

use    (\u) use another database. takes database name as argument.     --切換資料庫

charset  (\c) switch to another charset. might be needed for processing binlog with multi-byte charsets. --設定字符集

warnings (\w) show warnings after every statement.              --列印警告資訊

nowarning (\w) don't show warnings after every statement.

3、服務端的相關幫助

--獲取伺服器管理相關的幫助,輸入help contents

mysql> help contents;

mysql獲取幫助

標籤:like   標準輸出   after   isp   緩衝   rebuild   管理   synonym   vertica

mysql幫助的使用

mysql contents you asked for help about help category contents for more information,type help where is one ofthe following categories account manageme...

mysql獲取變數 使用變數從mysql獲取資料

我正在使用此 word post word wid post id print print sql select url imgsrch from p url imgsrch where word id wid order by rand limit 5 result mysql query sql...

如何使用mysql的函式幫助

現有這樣一張學生表,學生的性別是布林值,但是查詢結果想要顯示為男女,而不是01,該如何寫查詢語句?case 列名 when 值1 then 顯示1 when 值2 then 顯示2 else 顯示3 end select stuname as 姓名,case stu when 1then 男 whe...