Mysql Server 小技巧

  一、设置[root@CentOS ~]#vim /etc/my.cnf

增加
[mysql]
 #no-auto-rehash # faster start of mysql but no tab completition
 prompt="(\u:[email protected] \R:\m)[\d]: "
保存退出
二、变化
[root@CentOS ~]# 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.52 Source distribution
 
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
(root:[email protected] 08:25)[(none)]:
 
[root@localhost ~]#  PS1='[\u@\h \w \A #\#]\$ '
[root@localhost ~ 17:56 #5]# 
 

本文出自 “hacker1394” 博客,谢绝转载!

你可能感兴趣的:(sql,mysql,mysql,数据库,server,小技巧)