InfiniDBのインストール時にcalpontAliasコマンドを実行していない場合は、ccコマンド、idbmysqlコマンドのエイリアスが登録されていません。
これらのコマンドが実行できない場合は、InfiniDBがインストールされているマシン上で以下を実行してください。
1 |
# . /usr/local/Calpont/bin/calpontAlias |
上記を実行すると、ccやidbmysql等のエイリアスが追加されていることが確認できます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# alias alias cc='/usr/local/Calpont/bin/calpontConsole' alias cmconsole='/usr/local/Calpont/bin/calpontConsole' alias core='cd /var/log/Calpont/corefiles' alias cp='cp -i' alias dbrm='cd /usr/local/Calpont/data1/systemFiles/dbrm' alias home='cd /usr/local/Calpont/' alias idbmysql='/usr/local/Calpont/mysql/bin/mysql --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root' alias l.='ls -d .* --color=auto' alias ll='ls -l --color=auto' alias log='cd /var/log/Calpont/' alias ls='ls --color=auto' alias module='cat /usr/local/Calpont/local/module' alias mv='mv -i' alias rm='rm -i' alias tdebug='tail -f /var/log/Calpont/debug.log' alias tinfo='tail -f /var/log/Calpont/info.log' alias tmsg='tail -f /var/log/messages' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' |
これでccコマンドやidbmyqlコマンドが実行できるようになります。
ccコマンドの実行結果
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# cc Calpont InfiniDB Command Console enter 'help' for list of commands enter 'exit' to exit the Calpont InfiniDB Command Console use up/down arrows to recall commands Active Alarm Counts: Critical = 0, Major = 0, Minor = 0, Warning = 0, Info = 0 Critical Active Alarms: InfiniDB> |
idbmysqlコマンドの実行結果
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# idbmysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 83 Server version: 5.1.73-log InfiniDB 4.5.2-1 Copyright (c) 2014, InfiniDB, Inc. and/or its affiliates. All rights reserved. Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. InfiniDB is a registered trademark of InfiniDB, Inc. and/or its affiliates. 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> |