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/

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

  • 相关阅读:
    Go语言通道(chan)——goroutine之间通信的管道
    GO语言数组,切片,MAP总结
    GO数组
    GO切片
    GO语言测试
    GO语言html模板
    Go语言中defer语句使用小结
    微信小程序 某个页面直接返回首页
    小程序常用变量
    bzoj1030
  • 原文地址:https://www.cnblogs.com/standby/p/7158420.html
Copyright © 2011-2022 走看看