如何获取mysql帮助信息_MySQL
在开发或测试环境在碰到mysql相关故障时,大多数朋友可能会通过论坛发帖,QQ群讨论方式来获取帮助。该方式是获取帮助的有效途径之一。然而如果在生产环境,在没有网络的环境下,这些方式就无助于问题的解决。无论何种数据库,从官方网站获取帮助是最直接最有效的方式。其次没有网络的环境下,我们可以通过MySQL客户端工具自带的帮助信息来解决问题。
1)MySQL官方手册
下载位置:http://dev.mysql.com/doc/
2)MySQL客户端工具自带的帮助
获取mysql有关的帮助信息,直接在mysql提示符下输入help即可获得有关在mysql客户端相关的帮助信息。 这个方式与Oracle SQL*plus下的help 是类似的。 mysql> help For information about MySQL products and services, visit: http://www.mysql.com/ For developer information, including the MySQL Reference Manual, visit: http://dev.mysql.com/ To buy MySQL Enterprise support, training, or other products, visit: https://shop.mysql.com/ List of all MySQL commands: Note that all text commands must be first on line and end with ';' ? (\?) Synonym for `help'. clear (\c) Clear the current input statement. --清除当前输入的语句 connect (\r) Reconnect to the server. Optional arguments are db and host. --重新连接,通常用于被剔除或异常断开后重新连接,SQL*plus下也有这样一个connect命令 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. --上面的所有命令,扩号内的为快捷操作,即只需要输入“\”+ 字母即可执行 For server side help, type 'help contents' --注意这里的描述help contents将获得服务器端的相关帮助信息 --演示部分,演示常用命令 --connect命令 mysql> connect chardb localhost; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Connection id: 5 Current database: chardb --设置分页,在多余一个页面显示时会不停的翻滚,用该命令可以设置分页,设置为调用系统命令 mysql> pager more --设置为more方式 PAGER set to 'more' mysql> select table_name,table_type,engine from information_schema.tables; --该查询会超出一屏显示后按空格键会自动翻滚到下一屏 mysql> pager tail -5; --设置输出尾部5行 PAGER set to 'tail -5' mysql> select table_name,table_type,engine from information_schema.tables; | setup_timers | BASE TABLE | PERFORMANCE_SCHEMA | | threads | BASE TABLE | PERFORMANCE_SCHEMA | | animals | BASE TABLE | InnoDB | | shop | BASE TABLE | InnoDB | +----------------------------------------------+-------------+--------------------+ 92 rows in set (0.02 sec) mysql> pager; --查看当前的pager设置 PAGER set to 'tail -5' mysql> nopager; --切换到标准(缺省)pager方式 PAGER set to stdout --tee命令,输出日志文件 mysql> tee /tmp/query.log --开启输出到文件,相当与SQL*plus下的spool Logging to file '/tmp/query.log' mysql> select table_name,table_type,engine from information_schema.tables; +----------------------------------------------+-------------+--------------------+ | table_name | table_type | engine | +----------------------------------------------+-------------+--------------------+ | CHARACTER_SETS | SYSTEM VIEW | MEMORY | | COLLATIONS | SYSTEM VIEW | MEMORY | ............. mysql> notee; --关闭输出到文件,相当于SQL*Plus下的spool off Outfile disabled. mysql> system tail /tmp/query.log --查看输出的日志文件 | setup_consumers | BASE TABLE | PERFORMANCE_SCHEMA | | setup_instruments | BASE TABLE | PERFORMANCE_SCHEMA | | setup_timers | BASE TABLE | PERFORMANCE_SCHEMA | | threads | BASE TABLE | PERFORMANCE_SCHEMA | | animals | BASE TABLE | InnoDB | | shop | BASE TABLE | InnoDB | +----------------------------------------------+-------------+--------------------+ 92 rows in set (0.02 sec) --改变mysql提示符 mysql> prompt SessionA> PROMPT set to 'SessionA> ' --恢复到缺省提示符 SessionA> prompt; Returning to default PROMPT of mysql> --执行sql脚本文件 mysql> system more query.sql --注意,此时为当前目录 use chardb select * from tb_isam; mysql> source query.sql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed +------+-------+ | id | value | +------+-------+ | 1 | a | | 2 | b | | 3 | c | | 4 | f | +------+-------+ 4 rows in set (0.00 sec) --获取状态信息 mysql> status; -------------- mysql Ver 14.14 Distrib 5.5.37, for Linux (x86_64) using readline 5.1 Connection id: 6 Current database: chardb Current user: root@localhost SSL: Not in use Current pager: less Using outfile: '' Using delimiter: ; Server version: 5.5.37-log MySQL Community Server (GPL) Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: utf8 Client characterset: latin1 Conn. characterset: latin1 UNIX socket: /var/lib/mysql/mysql.sock Uptime: 3 hours 10 min 59 sec Threads: 1 Questions: 97 Slow queries: 0 Opens: 313 Flush tables: 1 Open tables: 51 Queries per second avg: 0.008 -------------- --修改客户端字符集 mysql> charset gbk; Charset changed mysql> \s -------------- mysql Ver 14.14 Distrib 5.5.37, for Linux (x86_64) using readline 5.1 Connection id: 6 Current database: chardb Current user: root@localhost SSL: Not in use Current pager: less Using outfile: '' Using delimiter: ; Server version: 5.5.37-log MySQL Community Server (GPL) Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: utf8 Client characterset: gbk ---客户端和conn端字符集都变成gbk了。 Conn. characterset: gbk UNIX socket: /var/lib/mysql/mysql.sock Uptime: 3 hours 13 min 33 sec Threads: 1 Questions: 105 Slow queries: 0 Opens: 313 Flush tables: 1 Open tables: 51 Queries per second avg: 0.009 -------------- mysql> warnings; Show warnings enabled. mysql> selecs 1; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'selecs 1' at line 1 mysql> show warnings; +-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Level | Code | Message | +-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Error | 1064 | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'selecs 1' at line 1 | +-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> show errors; +-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Level | Code | Message | +-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Error | 1064 | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'selecs 1' at line 1 | +-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> nowarning; Show warnings disabled.
--获取服务器管理相关的帮助,输入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 Compound Statements Data Definition Data Manipulation Data Types Functions Functions and Modifiers for Use with GROUP BY Geographic Features Help Metadata Language Structure Plugins Procedures Storage Engines Table Maintenance Transactions User-Defined Functions Utility --要查询那一个部分的内容,直接输入help + 内容,如下 mysql> help administration; You asked for help about help category: "Administration" For more information, type 'help <item>', where <item> is one of the following topics: BINLOG CACHE INDEX FLUSH FLUSH QUERY CACHE HELP COMMAND KILL .......... --接下来,我们查看administration部分下的flush命令用法,直接输入help flush;即可 mysql> help flush; Name: 'FLUSH' Description: Syntax: FLUSH [NO_WRITE_TO_BINLOG | LOCAL] flush_option [, flush_option] ... The FLUSH statement has several variant forms that clear or reload various internal caches, flush tables, or acquire locks. To execute FLUSH, you must have the RELOAD privilege. Specific flush options might require additional privileges, as described later. --查看cache index的帮助信息 mysql> help CACHE INDEX; Name: 'CACHE INDEX' Description: Syntax: CACHE INDEX tbl_index_list [, tbl_index_list] ... [PARTITION (partition_list | ALL)] IN key_cache_name tbl_index_list: tbl_name [[INDEX|KEY] (index_name[, index_name] ...)] partition_list: partition_name[, partition_name][, ...] ........................ --总结,即通过逐级help的方式即可获得与其主题相关的详细信息。 --Author: Leshami --Blog: http://blog.csdn.net/leshami --比较常用的show 命令,通常查看系统变量,状态变量等 mysql> help show; Name: 'SHOW' Description: SHOW has many forms that provide information about databases, tables, columns, or status information about the server. This section describes those following: SHOW AUTHORS SHOW {BINARY | MASTER} LOGS --设置系统变量,用set 命令 mysql> help set; Name: 'SET' Description: Syntax: SET variable_assignment [, variable_assignment] ... variable_assignment: user_var_name = expr | [GLOBAL | SESSION] system_var_name = expr | [@@global. | @@session. | @@]system_var_name = expr The SET statement assigns values to different types of variables that affect the operation of the server or your client. Older versions of MySQL employed SET OPTION, but this syntax is deprecated in favor of SET without OPTION. URL: http://dev.mysql.com/doc/refman/5.5/en/set-statement.html

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











Microsoft Word 문서는 저장 시 일부 메타데이터를 포함합니다. 이러한 세부 정보는 문서 작성 날짜, 작성자, 수정 날짜 등 문서 식별에 사용됩니다. 또한 문자 수, 단어 수, 단락 수 등과 같은 기타 정보도 있습니다. 다른 사람이 값을 알 수 없도록 작성자나 마지막 수정 정보 또는 기타 정보를 제거하려는 경우 방법이 있습니다. 이번 글에서는 문서 작성자와 최종 수정 정보를 제거하는 방법을 살펴보겠습니다. Microsoft Word 문서에서 작성자 및 마지막 수정 정보 제거 1단계 – 다음으로 이동

시스템 정보 사용 시작을 클릭하고 시스템 정보를 입력합니다. 아래 이미지에 표시된 대로 프로그램을 클릭하기만 하면 됩니다. 여기에서는 대부분의 시스템 정보를 찾을 수 있으며, 그 중 하나는 그래픽 카드 정보입니다. 시스템 정보 프로그램에서 구성 요소를 확장한 다음 표시를 클릭합니다. 프로그램이 필요한 모든 정보를 수집하도록 하고, 준비가 되면 시스템에서 그래픽 카드별 이름과 기타 정보를 찾을 수 있습니다. 그래픽 카드가 여러 개 있더라도 여기에서 컴퓨터에 연결된 전용 및 통합 그래픽 카드와 관련된 대부분의 콘텐츠를 찾을 수 있습니다. 장치 관리자 사용 Windows 11 대부분의 다른 Windows 버전과 마찬가지로 장치 관리자에서 컴퓨터의 그래픽 카드를 찾을 수도 있습니다. 시작을 클릭한 다음

iOS 17에는 두 개의 iPhone을 터치하여 누군가와 연락처 정보를 교환할 수 있는 새로운 AirDrop 기능이 있습니다. NameDrop이라고 하며 작동 방식은 다음과 같습니다. 전화를 걸거나 문자를 보내기 위해 새로운 사람의 전화번호를 입력하는 대신, NameDrop을 사용하면 iPhone을 상대방의 iPhone 근처에 두기만 하면 연락처 정보를 교환하여 상대방이 귀하의 전화번호를 알 수 있습니다. 두 장치를 함께 놓으면 연락처 공유 인터페이스가 자동으로 나타납니다. 팝업을 클릭하면 개인의 연락처 정보와 연락처 포스터가 표시됩니다(iOS17의 새로운 기능인 자신의 사진을 사용자 정의하고 편집할 수도 있습니다). 이 화면에는 "수신만" 또는 응답으로 자신의 연락처 정보를 공유하는 옵션도 포함되어 있습니다.

현재 영상 3D 재구성 작업은 일반적으로 일정한 자연광 조건 하에서 여러 시점(멀티뷰)에서 대상 장면을 캡처하는 멀티뷰 스테레오 재구성 방식(Multi-view Stereo)을 사용합니다. 그러나 이러한 방법은 일반적으로 Lambertian 표면을 가정하므로 고주파수 세부 정보를 복구하는 데 어려움이 있습니다. 장면 재구성에 대한 또 다른 접근 방식은 고정된 시점에서 캡처한 이미지를 다양한 포인트 라이트로 활용하는 것입니다. 예를 들어 포토메트릭 스테레오 방법은 이 설정을 사용하고 해당 음영 정보를 사용하여 램버시안 개체가 아닌 개체의 표면 세부 정보를 재구성합니다. 하지만 기존의 싱글뷰 방식에서는 눈에 보이는 것을 표현하기 위해 보통 노멀맵이나 깊이맵을 사용하는 경우가 많습니다.

iOS17에는 아이폰 두 대를 동시에 터치해 누군가와 연락처 정보를 교환할 수 있는 새로운 에어드롭(AirDrop) 기능이 있다. NameDrop이라고 하며 실제 작동 방식은 다음과 같습니다. NameDrop을 사용하면 전화를 걸거나 문자를 보낼 때 새로운 사람의 전화번호를 입력할 필요가 없어 상대방이 귀하의 전화번호를 알 수 있습니다. iPhone을 상대방의 iPhone에 가까이 갖다 대기만 하면 연락처 정보를 교환할 수 있습니다. 두 장치를 함께 놓으면 연락처 공유 인터페이스가 자동으로 나타납니다. 팝업을 클릭하면 사람의 연락처 정보와 연락처 포스터(사용자 정의하고 편집할 수 있는 자신의 사진, iOS 17의 새로운 기능)가 표시됩니다. 이 화면에는 "수신 전용"도 포함되어 있거나 이에 대한 응답으로 자신의 연락처 정보를 공유할 수 있습니다.

WeChat의 정보 수신이 지연되는 이유는 네트워크 문제, 서버 부하, 버전 문제, 장치 문제, 메시지 전송 문제 또는 기타 요인 때문일 수 있습니다. 자세한 소개: 1. 네트워크 문제 WeChat의 정보 수신 지연은 네트워크 연결과 관련이 있을 수 있습니다. 네트워크 연결이 불안정하거나 신호가 약한 경우 휴대폰이 지연될 수 있습니다. 2. 서버 부하가 높을 때, 특히 바쁜 시간이나 많은 사용자가 WeChat을 사용할 때 정보 전송이 지연될 수 있습니다. 같은 시간 등등

Apple은 NameDrop을 통해 연락처 정보를 다른 iPhone과 공유하는 매우 빠른(가장 빠르지는 않더라도) 방법을 도입했습니다. 여기에 당신이 알아야 할 모든 것이 있습니다. 네임드롭(NameDrop)이란 무엇입니까? iOS 17에는 연락처 포스터를 활용하는 혁신적인 기능인 NameDrop이 도입되었습니다. 이러한 개인화된 카드는 자신과 다른 연락처를 위해 생성될 수 있으며 전화를 걸 때마다 표시됩니다. 사진, 미모티콘, 모노그램 등과 같은 다양한 사용자 정의 옵션을 통해 선호하는 색 구성표와 글꼴을 사용하여 연락처 포스터를 자신의 개성에 맞게 맞춤화할 수 있습니다. NameDrop은 iPhone이 다른 사용자와 가까이 있을 때 자동으로 포스터를 공유하므로 양 당사자가 쉽게 포스터를 공유할 수 있습니다.

컴퓨터 네트워크에서의 정보 전송은 "단어"를 기반으로 합니다. 단어는 데이터 전송의 기본 단위입니다. 컴퓨터 네트워크에는 데이터 통신과 자원 공유라는 두 가지 주요 기능이 있으며, 데이터 통신에서 전송되는 정보는 바이너리 데이터 형식으로 표현됩니다. 데이터 통신은 데이터 전송 기술을 이용하여 특정 통신 프로토콜에 따라 두 단말 간에 데이터 정보를 전송하는 통신 방법 및 통신 서비스입니다.
