zoukankan      html  css  js  c++  java
  • prompt更改MySQL登陆后的提示符

    临时生效

    mysql> prompt u@standby 
    :m:s >
    PROMPT set to 'u@standby 
    :m:s >'
    root@standby 11:30:57 >
    root@standby 11:30:58 >

    永久生效

    更改配置文件:my.cnf

    [mysql]
    prompt="\r:\m:\s> "
    
    
    [mysql]
    no-auto-rehash
    prompt="\U \r:\m:\s> "
    [root@standby ~]# mysql -u root -p
    Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 2
    Server version: 5.1.72 Source distribution
    
    Copyright (c) 2000, 2013, 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 10:23:30> 
    root@localhost 10:23:32>
    

      

    作者:Standby一生热爱名山大川、草原沙漠,还有妹子
    出处:http://www.cnblogs.com/standby/

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    Linux下文件的基本操作
    conpot_usage简要说明
    const声明常量以及特点
    let变量声明以及声明特性
    盒子模型
    文本样式
    行间距
    字体的其他样式
    字体分类
    字体样式
  • 原文地址:https://www.cnblogs.com/standby/p/7158420.html
Copyright © 2011-2022 走看看