1.1mysql 数据库连接工具  

a.将sql语句发送到服务器 

b.管理数据库 

c.命令自带帮助

1.2mysqladmin

a.命令行管理工具
b.关闭数据库
c.修改密码

 

1.3mysqldump

a.备份表和数据管理工具

 2.获取帮助的方法

\h help ? 帮助:会打印出程序自带的命令
\G 行与列转换
\T tee 将命令行中执行的命令保存在设置文件中,退出不保存
\c Ctrl-c 退出当前行
\s status 查看系统状态信息
\. source命令 导入sql脚本执行,通常会用于数据恢复
\u use 查看库、表
快捷键

上下翻页 ==> 上下键  tab补全 ===> use world; desc city;

Ctrl +l ===> 清屏  \q ===> 退出

 

 2.1显示所有支持的sql语句类型

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
View Code

相关文章:

  • 2022-01-01
  • 2021-12-10
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-11-17
猜你喜欢
  • 2021-11-30
  • 2021-12-02
  • 2022-12-23
  • 2021-11-30
  • 2021-05-06
  • 2021-12-01
相关资源
相似解决方案