国产探花免费观看_亚洲丰满少妇自慰呻吟_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 主站蜘蛛池模板: 墨玉县| 泰和县| 兴和县| 宜章县| 吉隆县| 施秉县| 岑溪市| 昂仁县| 麻栗坡县| 宾阳县| 抚松县| 赞皇县| 广灵县| 济阳县| 沙洋县| 阿合奇县| 嘉峪关市| 林周县| 铁力市| 东山县| 新疆| 洛浦县| 博白县| 格尔木市| 蒙自县| 桑植县| 新营市| 安庆市| 金华市| 望城县| 修武县| 龙川县| 手游| 南郑县| 应城市| 博乐市| 达州市| 灵寿县| 南投县| 榆社县| 丰宁|