MySQL 客戶端伺服器端幫助


我們來了解一下 MySQL 客戶端伺服器端幫助 −

mysql> help search_string

如果向以上的“幫助”命令提供了引數,mysql 會將其用作搜尋字串,從 MySQL 參考手冊的內容中訪問伺服器端的幫助。此命令的正常操作需要使用幫助主題資訊來初始化 MySQL 資料庫中的幫助表。

如果沒有匹配的搜尋字串,則搜尋操作失敗。讓我們舉個例子來理解這一點 −

mysql> help me

輸出

Nothing found
Please try to run 'help contents' for a list of all accessible topics

我們可以使用 help contents 命令來檢視幫助類別的列表。讓我們舉個例子來理解這一點 −

mysql> help contents

輸出

You asked for help about help category: "Contents"
For more information, type 'help <item>', where <item> is one of the
following categories:
   Account Management
   Administration
   Data Definition
   Data Manipulation
   Data Types
   Functions
   Functions and Modifiers for Use with GROUP BY
   Geographic Features
   Language Structure
   Plugins
   Storage Engines
   Stored Routines
   Table Maintenance
   Transactions
   Triggers

如果搜尋字串匹配了多個專案,則 mysql 會顯示匹配主題的列表。讓我們舉個例子來理解這一點 −

mysql > help logs

輸出

Many help items for your request exist.
To make a more specific request, please type 'help <item>',
where <item> is one of the following topics:
   SHOW
   SHOW BINARY LOGS
   SHOW ENGINE
   SHOW LOGS

更新於: 10-Mar-2021

474 次瀏覽

開啟你的職業生涯

完成課程即可獲得認證

開始
廣告
© . All rights reserved.