巧用mysql提示符prompt清晰管理数据库的方法
时间:2024-01-24 14:05:07
mysql>prompt \u@\h(\d) \r:\m:\s>
\u:连接用户
\h:连接主机
\d:连接数据库
\r:\m:\s:显示当前时间
mysql>prompt \u@\h(\d) \r:\m:\s>
root@localhost(mysql) 08:55:21> status
--------------
mysql Ver 14.14 Distrib 5.1.33, for Win32 (ia32)
Connection id: 2
Current database: mysql
Current user: root@localhost
SSL: Not in use
Using delimiter: ;
Server version: 5.1.33-community-log MySQL Community Server (GPL)
Protocol version: 10
Connection: localhost via TCP/IP
Server characterset: gb2312
Db characterset: gb2312
Client characterset: latin1
Conn. characterset: latin1
TCP port: 3306
Uptime: 6 min 6 sec
Threads: 2 Questions: 867 Slow queries: 0 Opens: 129 Flush tables: 1 Open t
ables: 9 Queries per second avg: 2.368
--------------
root@localhost(mysql) 08:55:29>
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
JSON.stringify转换JSON时日期时间不准确的解决方法
![](https://img.aspxhome.com/file/2023/7/55917_0s.jpg)
Python OpenCV图像颜色变换示例
![](https://img.aspxhome.com/file/2023/5/93505_0s.jpg)
Windows下mysql5.7.10安装配置方法图文教程
![](https://img.aspxhome.com/file/2023/9/79019_0s.png)
ASP使用wsImage组件给图片加水印代码
tensorflow实现残差网络方式(mnist数据集)
![](https://img.aspxhome.com/file/2023/5/66915_0s.jpg)
Python 字典与字符串的互转实例
SQL SERVER 数据库备份代码实例
Go语言基础学习教程
![](https://img.aspxhome.com/file/2023/4/112244_0s.png)
python调用虹软2.0第三版的具体使用
CentOS 7中源码安装MySQL 5.7.6+详细教程
python使用梯度下降和牛顿法寻找Rosenbrock函数最小值实例
![](https://img.aspxhome.com/file/2023/7/101447_0s.jpg)
重置mysql的root密码最简单的方法
python list 合并连接字符串的方法
JavaScript的for循环中嵌套一个点击事件的问题解决
人民币的符号的正确表示法?一杠?两杠?¥还是¥呢?
一文搞懂Golang文件操作增删改查功能(基础篇)
![](https://img.aspxhome.com/file/2023/7/134297_0s.jpg)
Python手动实现Hough圆变换的示例代码
![](https://img.aspxhome.com/file/2023/1/101291_0s.png)
已安装tensorflow-gpu,但keras无法使用GPU加速的解决
![](https://img.aspxhome.com/file/2023/6/81736_0s.jpg)
Python list与NumPy array 区分详解
安装Pycharm2019以及配置anconda教程的方法步骤
![](https://img.aspxhome.com/file/2023/3/117953_0s.png)