Rechercher dans le manuel MySQL

4.5.1.4 mysql Client Server-Side Help

  1. mysql> help search_string

If you provide an argument to the help command, mysql uses it as a search string to access server-side help from the contents of the MySQL Reference Manual. The proper operation of this command requires that the help tables in the mysql database be initialized with help topic information (see Section 5.1.14, “Server-Side Help Support”).

If there is no match for the search string, the search fails:

  1. mysql> help me
  2.  
  3. Nothing found
  4. Please try to run 'help contents' for a list of all accessible topics

Use help contents to see a list of the help categories:

  1. mysql> help contents
  2. You asked for help about help category: "Contents"
  3. For more information, type 'help <item>', where <item> is one of the
  4. following categories:
  5.    Account Management
  6.    Administration
  7.    Data Definition
  8.    Data Manipulation
  9.    Data Types
  10.    Functions
  11.    Functions and Modifiers for Use with GROUP BY
  12.    Geographic Features
  13.    Language Structure
  14.    Plugins
  15.    Storage Engines
  16.    Stored Routines
  17.    Table Maintenance
  18.    Triggers

If the search string matches multiple items, mysql shows a list of matching topics:

  1. mysql> help logs
  2. Many help items for your request exist.
  3. To make a more specific request, please type 'help <item>',
  4. where <item> is one of the following topics:
  5.    SHOW
  6.    SHOW BINARY LOGS
  7.    SHOW LOGS

Use a topic as the search string to see the help entry for that topic:

  1. mysql> help show binary logs
  2. Name: 'SHOW BINARY LOGS'
  3. Description:
  4. Syntax:
  5. SHOW MASTER LOGS
  6.  
  7. Lists the binary log files on the server. This statement is used as
  8. part of the procedure described in [purge-binary-logs], that shows how
  9. to determine which logs can be purged.
  10.  
  11. mysql> SHOW BINARY LOGS;
  12. +---------------+-----------+-----------+
  13. | Log_name      | File_size | Encrypted |
  14. +---------------+-----------+-----------+
  15. | binlog.000015 |    724935 | Yes       |
  16. | binlog.000016 |    733481 | Yes       |
  17. +---------------+-----------+-----------+

The search string can contain the wildcard characters % and _. These have the same meaning as for pattern-matching operations performed with the LIKE operator. For example, HELP rep% returns a list of topics that begin with rep:

  1. mysql> HELP rep%
  2. Many help items for your request exist.
  3. To make a more specific request, please type 'help <item>',
  4. where <item> is one of the following
  5. topics:
  6.    REPAIR TABLE
  7.    REPEAT LOOP
  8.    REPLACE

Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-mysql-server-side-help.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut