Testing the MySQL Cluster can mean a lot of typing. Not being the best typist and getting tired of typing the same thing over and over again I created a short cut to make life better.
I have a file called shortcut.sh. Inside my .bash_profile for each of my test systems, I have added this file to be run when I login.
.bash_profile example
. /home/ndb/jmiller/shortcut.sh
Then all the command and connection strings I need are just few key strokes away.
shortcut.sh
alias ndbd='/home/ndb/jmiller/builds/libexec/ndbd'
alias ndb_mgmd='/home/ndb/jmiller/builds/libexec/ndb_mgmd'
alias ndb_mgm='/home/ndb/jmiller/builds/bin/ndb_mgm'
alias mysql='/home/ndb/jmiller/builds/bin/mysql'
alias mysql_server='/etc/init.d/mysql.server'
alias ndb_restore='/home/ndb/jmiller/builds/bin/ndb_restore'
alias mysqldump='/home/ndb/jmiller/builds/bin/mysqldump'
…
[Read more]