prompt. The string for defining the prompt can contain the following special sequences. mysql 控制臺(tái)程序的默認(rèn)提示符為 mysql>. 該提示符可用根據(jù)需要進(jìn)行修改設(shè)置: 有以下幾種設(shè)置方式: 設(shè)置shell 的環(huán)境變量 : MYSQL_PS1 shell>" />
mysql 控制臺(tái)程序的默認(rèn)提示符為 "mysql>". 該提示符可用根據(jù)需要進(jìn)行修改設(shè)置:
有以下幾種設(shè)置方式:
設(shè)置shell 的環(huán)境變量 : MYSQL_PS1
shell> export MYSQL_PS1="(/u@/h) [/d]> "
使用程序啟動(dòng)命令選項(xiàng) : --prompt
shell> mysql --prompt="(/u@/h) [/d]> "
(user@host) [database]>
設(shè)置選項(xiàng)文件中的 [mysql] 節(jié),添加 prompt 選項(xiàng)
[mysql]
prompt=(//u@//h) [//d]>//_
在 mysql 程序中使用 prompt (/R) 命令
mysql> prompt (/u@/h) [/d]>/_
PROMPT set to '(/u@/h) [/d]>/_'
(user@host) [database]>
(user@host) [database]> prompt
Returning to default PROMPT of mysql>
mysql>
prompt 中一些特殊的轉(zhuǎn)義字符串
Option | Description |
---|---|
/c | A counter that increments for each statement you issue |
/D | The full current date |
/d | The default database |
/h | The server host |
/l | The current delimiter (new in 5.1.12) |
/m | Minutes of the current time |
/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 | The current time, in 24-hour military time (0
聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com ![]() mysql控制臺(tái)程序的提示符prompt字符串設(shè)置_MySQLmysql控制臺(tái)程序的提示符prompt字符串設(shè)置_MySQL:bitsCN.com The prompt command reconfigures the default mysql> prompt. The string for defining the prompt can contain the following special sequences. mysql 控制臺(tái)程序的默認(rèn)提示符為 mysql>. 該提示符可用根據(jù)需要進(jìn)行修改設(shè)置: 有以下幾種設(shè)置方式: 設(shè)置shell 的環(huán)境變量 : MYSQL_PS1 shell>
推薦度:
最新推薦猜你喜歡熱門(mén)推薦 |