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

Learn MySQL in-depth with real-world projects through our MySQL certification course. Enroll and become a certified expert to boost your career.

输出

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 次浏览

开启你的职业生涯

完成课程即可获得认证

开始
广告