イメージとしてはこんな感じ。
$ client/mysql -S/usr/mysql/5.6.12/data/mysql.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11532
Server version: 5.6.12-log 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.
mysql>
mysql>
mysql>
mysql> exit
Bye
mysql-5.6.12/client/mysql.ccに手抜きな感じで追加。
$ vim client/mysql.cc .. 1316 put_info("\033[1;31mWelcome to the MySQL monitor. Commands end with ; or \\g.", .. 1429 put_info(sig ? "\033[0mAborted" : "\033[0mBye", INFO_RESULT); ..
ビバ、手抜き。
0 件のコメント :
コメントを投稿