首页 > 数据库技术 > 详细

Mysql修改默认提示符

时间:2019-09-01 17:55:02      阅读:71      评论:0      收藏:0      [点我收藏+]

mysql修改默认提示符

临时修改

mysql> prompt [\u@db1 \r:\m:\s]-->
PROMPT set to ‘[\u@db1 \r:\m:\s]-->‘
[root@db1 04:59:34]-->
[root@db1 04:59:36]-->
[root@db1 04:59:36]-->

永久生效

加放/etc/my.cnf [mysql]模块中,注意不是mysqld

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It‘s a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysql]
prompt=[\\u@db1 \\r:\\m:\\s]-->

 

Mysql修改默认提示符

原文:https://www.cnblogs.com/HByang/p/11442714.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!