Mysql[命令用法] mysqlshow
来源:互联网 发布:ubuntu关闭iptables 编辑:程序博客网 时间:2024/05/17 04:21
mysqlshow用法
最近学习mysql时,有用到mysqlshow,并且遇到一些问题,所以做个记录
mysqlshow命令用于显示mysql服务器中数据库、表和列表信息。
语法
mysqlshow(选项)(参数)
命令解析
-h:MySQL服务器的ip地址或主机名;
-u:连接MySQL服务器的用户名;
-p:连接MySQL服务器的密码;
–count:显示每个数据表中数据的行数;
-k:显示数据表的索引;
-t:显示数据表的类型;
-i:显示数据表的额外信息。
参数
数据库信息:指定要显示的数据库信息,可以是一个数据库名,或者是数据库名和表名,或者是数据库名、表名和列名。
Below,it is a example.First, we use the statement.
mysqlshow
You can get the result below.
From the picture,we can learn that if we just use mysqlshow
,the shell can’t compile . Why don’t it work ?
It is because the statement need factors , and we use the new mysqlshow -u root -p
Note: I don’t use the factor ‘-h’, just because my MySQL is installed in my computer. If your MySQL is installed in the other machine, you must use ‘-h’.
OKay , now it is work . Beside databases , the mysqlshow
can seek tables , and the infornation of the table .
By the way , mysqlshow
is used in shell , and not MySQL Command Line Client .
Okay , that is all .
Lucky !
- Mysql[命令用法] mysqlshow
- mysql programs(一)--mysqlshow
- mysql 自带指令 mysqlshow
- MySQL Study之--MySQL工具mysqlshow
- mysqlshow 使用方法
- MySQL Flush命令用法
- 解决mysqlshow: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
- mysql数据库show命令用法
- MySQL的EXPLAIN命令用法
- MySQL 部分命令用法--帮助命令
- mysql 中show 命令用法详细介绍
- mysql 中show 命令用法详细介绍
- MySQL数据库中Show命令用法详解
- mysql 中show 命令用法详细介绍
- mysql 中show 命令用法详细介绍
- mysql中授权命令grant用法详解
- MySQL 创建用户的Grant命令用法
- MySQL Show命令的用法大全
- 阶乘和数(abc=a!+b!+c!)
- GYM
- 前端播报
- ufunc运算
- C++构造函数、拷贝构造函数、赋值函数浅析
- Mysql[命令用法] mysqlshow
- 栈内存状态变化概述
- web安全之文件上传漏洞攻击与防范方法
- 对象内存模型[0]
- 12步轻松搞定python装饰器
- GYM
- Git小记
- 关于Scanner类输入整数的详细步骤
- 笔记-Bagging与随机森林