prompt命令可以在mysql提示符中显示当前用户、数据库、时间等信息 复制代码 代码如下: mysql -uroot -p --prompt="\\u@\\h:\\d \\r:\\m:\\s" 设置成功后: 复制代码 代码如下: Welcome to the MySQL monitor. prompt命令可以在mysql提示符中显示当前用户、数据库、时间等信息复制代码 代码如下:mysql -
The prompt command reconfigures the default mysql prompt. The string for defining the prompt can contain the following special sequences. mysql 控制台程序的默认提示符为 "mysql". 该提示符可用根据需要进行修改设置: 有 The prompt com
mysqlprompt \u@\h(\d) \r:\m:\s \u:连接用户 \h:连接主机 \d:连接数据库 \r:\m:\s:显示当前时间 mysqlprompt \u@\h(\d) \r:\m:\s root@localhost(mysql) 08:55:21 status -------------- mysql Ver 14.14 Distrib 5.1.33, for Win32 (i