国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql prompt的用法詳解

2020-01-18 23:41:12
字體:
來源:轉載
供稿:網友
prompt命令可以在mysql提示符中顯示當前用戶、數據庫、時間等信息
復制代碼 代碼如下:

mysql -uroot -p --prompt="http://u@//h://d //r://m://s>"

設置成功后:
復制代碼 代碼如下:

Welcome to the MySQL monitor.  Commands end with ; or /g.
Your MySQL connection id is 5
Server version: 5.1.60-log Source distribution
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
root@localhost:(none) 11:04:23>

也可以在在my.cnf配置文件里進行配置:
復制代碼 代碼如下:

[mysql] 
prompt=mysql(//u@//h://d)> 

default-character-set=utf8 

選項說明:
復制代碼 代碼如下:

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 主站蜘蛛池模板: 恩平市| 汝南县| 宜良县| 依安县| 和田县| 江津市| 永定县| 商南县| 武清区| 奉化市| 镶黄旗| 舟曲县| 曲沃县| 大港区| 商城县| 洪雅县| 长丰县| 汉阴县| 南开区| 馆陶县| 阳春市| 贵港市| 广宗县| 林周县| 德钦县| 六盘水市| 阳原县| 和静县| 盐边县| 白朗县| 芒康县| 浦江县| 濮阳县| 葫芦岛市| 河东区| 长寿区| 嘉峪关市| 堆龙德庆县| 河南省| 重庆市| 灌南县|