 <p>As most of people mentioned here - one of the solutions will be to use aliases. Don't like them to be honest because they are preventing me learning some really nice Linux commands :) It's just a joke. But the best way for you, as I think, will be to locate a <code>~/.bashrc</code> file located in your home directory and put there:</p> <pre><code>alias mysql="mysql -h 127.0.0.1" </code></pre> <p>Don't forget that you have to restart your session in order for this solution to work or you may type <code>bash</code> command at the same terminal session - it will reload all your bash settings. Good luck!</p> <p>P.S. I suggest you to close all other terminal windows before editing <code>.bashrc</code> because you may just got a read-only file. I had such issue under Win7x64</p>