MySql 个性化设置提示符
2017-08-22 11:22
387 查看
MySql 个性化设置提示符
基本语法输入
mysql> prompt \u@\d;
结果
root@ddicar_v3;
个性化内容
\D 当前日期
\d 当前数据库
\h 数据库主机
\l The current delimiter (new in 5.1.12)
\m 当前时间(分)
\n A newline character
\O The current month in three-letter format (Jan, Feb, …)
\o The current month in numeric format
\P am/pm
\p The current TCP/IP port or socket file 端口号
\R 当前时间(小时)(0–23)
\r 当前时间(小时)(1–12)
\S Semicolon
\s 当前时间(秒)
\t A tab character
\U Your full user_name@host_name account name
\u 数据库用户名
\v The server version
\w The current day of the week in three-letter format (Mon, Tue, …)
\Y The current year, four digits
\y The current year, two digits
_ A space
\ A space (a space follows the backslash)
\’ Single quote
\” Double quote
\ A literal “\” backslash character
\x x, for any “x” not listed above
相关文章推荐
- 个性化设置 MySQL prompt 提示符
- mysql 控制台程序的提示符 prompt 字符串设置
- mysql 控制台程序的提示符 prompt 字符串设置
- Mysql:mysql 控制台程序的提示符 prompt 字符串设置
- MySQL外键设置中的的 Cascade、NO ACTION、Restrict、SET NULL
- MySQL安全设置图文教程
- 二:MySQL-my.ini设置
- MySQL 时区设置
- 【初学菜鸟作-MySQL代理服务器设置与集群】
- mysql表达式中decimal的设置,和length的设置
- 对MySQL中字符集的相关设置操作的基本教程
- freebsd平台mysql设置
- ubuntu设置mysql编码 大坑
- MySQL 优化设置步骤
- Linux 如何设置mysql的表不区分你大小写
- mysql怎么设置gbk编码
- windows系统下mysql5.5查看和设置数据库编码
- mysql整型存储字节与最大长度设置
- mysql设置参数
- Mysql创建存储过程示例_设置变量方法_