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