下面講講關于mysql如何查看配置參數和獲取幫助,文字的奧妙在于貼近主題相關。所以,閑話就不談了,我們直接看下文吧,相信看完mysql如何查看配置參數和獲取幫助這篇文章你一定會有所受益。
查看配置參數:
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. --執行系統命令
tee (\T) Set outfile [to_outfile]. Append everything into given outfile.--操作結果輸出到文件
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如何查看配置參數和獲取幫助相關內容,大家還有什么不明白的地方嗎?或者想要了解更多相關,可以繼續關注我們的行業資訊板塊。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。